note 95733 added to book.curl

From: Date: Tue, 19 Jan 2010 02:56:50 +0000
Subject: note 95733 added to book.curl
Groups: php.notes 
Request: Send a blank email to php-notes+get-165099@lists.php.net to get a copy of this message
This is something obscure I noticed... If you try to use something like: curl_setopt($agent, CURLOPT_POST, true); curl_setopt($agent, CURLOPT_POSTFIELDS, $post_data); so that you POST something to a URL. Then if you screwed up your URL slightly like: http://www.somewhere.com rather than http://www.somewhere.com/ (note the slash) hence, causing a redirect, then your posted data won't be sent once the redirect occurs. ---- Server IP: 69.147.83.197 Probable Submitter: 173.11.90.165 ---- Manual Page -- http://www.php.net/manual/en/book.curl.php Edit -- https://master.php.net/note/edit/95733 Del: integrated -- https://master.php.net/note/delete/95733/integrated Del: useless -- https://master.php.net/note/delete/95733/useless Del: bad code -- https://master.php.net/note/delete/95733/bad+code Del: spam -- https://master.php.net/note/delete/95733/spam Del: non-english -- https://master.php.net/note/delete/95733/non-english Del: in docs -- https://master.php.net/note/delete/95733/in+docs Del: other reasons-- https://master.php.net/note/delete/95733 Reject -- https://master.php.net/note/reject/95733 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#165099) next »