[thelist] doing http requests using php (without curl?)

Bigpant bigpant at btinternet.com
Wed May 22 15:15:01 CDT 2002


>i am trying to carry out an http POST request in the middle of a php
>script

You can send http headers using the php 'header' function. Bear in mind
that you cannot echo or print anything (or add any HTML) before the
header command. Any output will force http headers. Check it out in the
manual. http://www.php.net/download-docs.php if you don't have it.

HTH
Phil Parker




More information about the thelist mailing list