note 62326 added to ref.curl
| From: | AbrahamGodong at osu1 dot php dot net | Date: | Sat, 25 Feb 2006 05:27:34 +0000 |
| Subject: | note 62326 added to ref.curl | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-104401@lists.php.net to get a copy of this message | ||
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?
----
Server IP: 216.194.113.175
Probable Submitter: 67.171.54.37
----
Manual Page -- http://www.php.net/manual/en/ref.curl.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+62326
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+62326&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+62326&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+62326&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+62326&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+62326&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+62326&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+62326&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+62326&report=yes
Search -- http://master.php.net/manage/user-notes.php