Re: Can't fetch HTTP POST data in PHP?
| From: | Ivan Marenic | Date: | Sat, 15 Nov 2003 22:06:54 +0000 |
| Subject: | Re: Can't fetch HTTP POST data in PHP? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-169777@lists.php.net to get a copy of this message | ||
> Is it possible for you to show us the HTTP request that is failing? It is
> possible that it is malformed in some way that is fine with some Web
> servers and not with others.
That may be possible but I am testing ASP i PHP(4.3.2) on same server IIS
5.0, localy.
Can't sniff that (Network adapter not in use)
Other, remote server I am using is Apache on RedHat Linux.
Here is "failed" POST REQUEST to that server:
*************************************
POST /http_post.php HTTP/1.1
User-Agent: Profile/MIDP-1.0 Configuration/CLDC-1.0
Host: www.milleniumtip.com:80
Content-Disposition: attachment; name="userfile"; filename="userfile_txt"
Connection: close
Content-Type: text/plain
Content-Length: 47
Content-Language: en-US
********************************************
Here is response:
********************************************
HTTP/1.1 200 OK
Date: Sat, 15 Nov 2003 22:02:40 GMT
Server: Apache/1.3.27 (Unix) (Red-Hat/Linux) mod_watch/3.12
mod_throttle/3.1.2 mod_gzip/1.3.19.1a mod_auth_pam/1.0a mod_ssl/2.8.11
OpenSSL/0.9.6e PHP/4.2.3 mod_perl/1.26 FrontPage/5.0.2.2510
X-Powered-By: PHP/4.2.3
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html
********************************************
>
> You might be able to use ethereal (http://www.ethereal.com/) to get the
> HTTP request.
For sniffing HTTP traffic I am using EffeTech HTTP Sniffer. Works OK.
Ivan