Rajesh Batchu wrote:
that is because you are not using the query string. POST sends it's data in the body of the message and as a part of the url.Hi,
I am working on a php script which is accessed as below
http://10.10.10.10/pageone.php?hellohowareyou
in the pageone.php i am accessing the variable $_SERVER["QUERY_STRING" and i am getting the proper "hellohowareyou" as value.
All these days i was accessing this over the browser. But now i need to POST to this
page from command line. When i am usnig the below logic to post to this page, i am not getting any value in the $_SERVER["QUERY_STRING".
try
$usepath="http://10.10.10.10/pageone.php?hellohowareyou";
and use GET instead of POST.
been a while since I read the RFC but if you use 1.1 i think you have to send the host header.
-- Raditha Dissanayake. ------------------------------------------------------------------------ http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader Graphical User Inteface. Just 128 KB | with progress bar.
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php