Re: http POST

From: Date: Fri, 07 Apr 2000 20:36:51 +0000
Subject: Re: http POST
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-17716@lists.php.net to get a copy of this message
The content-type header is definitely required, because different content types require different handling. Zeev On Fri, 7 Apr 2000, Manton Reece wrote: > > // 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/ > > -- Zeev Suraski <zeev@zend.com> http://www.zend.com/

« previous php.dev (#17716) next »