Re: http POST

From: Date: Fri, 07 Apr 2000 20:34:07 +0000
Subject: Re: http POST
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-17715@lists.php.net to get a copy of this message
          // send transaction
          fputs($connection, "POST /test/testOAS\r\n");
          fputs($connection, "123\r\n");
          fputs($connection, "\r\n");
I was just doing something similar so... fputs($connection, "POST /test/testOAS HTTP/1.0\r\n"); fputs($connection, "Host: whatever.com\r\n"); fputs($connection, "\r\n"); fputs($connection, "myarg=123"); You should also probably specify a Content-type and Content-length header. I've been doing some POSTs from Java to PHP (unsuccessfully so far) and PHP seems to require a Content-type header being present. ____________________________________________________
Manton Reece                    manton@iensemble.com
Interactive Ensemble       http://www.iensemble.com/


« previous php.dev (#17715) next »