Reply to Re: Forward with cURL

Your name:

Reply:


Posted by Philip Ronan on 11/01/05 17:59

"Du" wrote:

> is there a way to forward the user to another address using cURL, without
> having to use header?

No. You have to use a "Location" header to do that.

> I need to send the referer, but header ("location: ") doens't seem to do it

"Referer" is a *request* header. It doesn't belong in a HTTP *response*. The
client's browser might provide a Referer header at the new location if it's
configured to do so (most browsers are). But you have no control over this.

Try checking the HTTP specification: <http://rfc.net/rfc2616.html>

--
phil [dot] ronan @ virgin [dot] net
http://vzone.virgin.net/phil.ronan/

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация