NYCPHP Meetup

NYPHP.org

[nycphp-talk] POSTing with HTTP and PHP

John Campbell jcampbell1 at gmail.com
Fri Jan 4 12:57:23 EST 2008


> Can I send data via HTTP POST with the header() function?

No.  Generally speaking, the header function sends *response* headers.
 HTTP POST data is sent as part of a *request* header.

I would recommend using curl to create http requests that contain post data.

Regards,
John Campbell



More information about the talk mailing list