hi... i m new to this list ... what i wanted to know is how (i.e. if at all its possible) does one send a POST request to a URI ?? my problem is thus : I have to send a HUGE amount of data to a URL without using a form to send it.. i mean i can use a header("Location:http://www.foo.com/foo.php?querystring=blah&next=soonandsoforth") but the problem is that i can't have a querystring beyond 1024 bytes while what i have to send is more than 1024 bytes... so i need to send data thru a POST method, but then again i have no idea what header to set and how in the php script to get this thing going... PLEASE HELP !!!!
use fsockeopen to open a socket to an URL. then fputs($fp, "POST /foo.php3 HHTP/1.0)\n"); fputs($fp, "somevar=somevalue\n");
Should be smth like this... Try to find syntaxis for POST method somewehere on the net.