Re: Can't fetch HTTP POST data in PHP?
| From: | Chris Shiflett | Date: | Sat, 15 Nov 2003 22:10:49 +0000 |
| Subject: | Re: Can't fetch HTTP POST data in PHP? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-169778@lists.php.net to get a copy of this message | ||
--- Ivan Marenic <admin@milleniumtip.com> wrote:
> 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
>
> ********************************************
That's the whole thing? If so, the problem seems to be a complete lack of
content. The Content-Length header specifies that 47 bytes are coming, and
Content-Type tells us that it is plain text, but there is nothing (it
should be after the blank line that follows Content-Language). Can you
check to see that you didn't omit this?
Chris
=====
Chris Shiflett - http://shiflett.org/
PHP Security Handbook
Coming mid-2004
HTTP Developer's Handbook
http://httphandbook.org/
RAMP Training Courses
http://www.nyphp.org/ramp