View Full Version : POSTING with Authenication in PHP

sir pannels
01-25-2008, 05:38 PM
Hello all,

I need to send a POST request to a location but need to send authentication in the headers, I don't know that its possible with HTML form so hoping there is something in PHP that can take care of it...

POST /test.xml HTTP/1.0
Content-Type: application/x-www/form-urlencoded
Authorization: password0001

I've have done some googl'in but not found anything about sending the authentication, if anyone can provide any assistance or resources that be wonderful.

Many thanks
Sir P :D

01-25-2008, 09:05 PM
Google for cURL.

sir pannels
02-01-2008, 01:53 PM
Thanks aedrin :)