note 62326 deleted from ref.curl by nlopess

From: Date: Sat, 25 Feb 2006 13:18:52 +0000
Subject: note 62326 deleted from ref.curl by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-104420@lists.php.net to get a copy of this message
Note Submitter: Abraham Godong ---- It is important to process all the information from fetched URL through cURL if you intend to display it. cURL make HTTP request through the server, therefore using the webserver's IP address. Sometime when you use post method with cURL and want to display information it returns by simply displaying the http content of the result, it will return session error (since the request of the content after logged in is initiated by the client's browser). Since the session is initiated with server's IP address, the content server will reject request to display the result. An example if the curl logged in to a site that then return a frame page, some of the frames require the session info to be sent, but since it is displayed (echo ($result);), then the client browser, not the webserver will try to get the content, hence the error come since the IP is different. So if you want to cURLed a session, don't forget to cURLed all the following hyperlink that is returned from that session. Any other workaround on this?

« previous php.notes (#104420) next »