Re: Can't fetch HTTP POST data in PHP?
| From: | Ivan Marenic | Date: | Sat, 15 Nov 2003 22:37:22 +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-169780@lists.php.net to get a copy of this message | ||
I did not omit content.
Copied whole text box in sniffer using context menu comands (select all,
copy) - pasted to news agent.
There is no content.
However, when using local server, on my desktop, I assume there is content
because I am getting response from ASP page with exact data wich is sent
from client.
PHP page responses exactly the same as the one on remote Apache server.
I have mental fog in my mind write now.
"Chris Shiflett" <shiflett@php.net> wrote in message
news:20031115221049.7906.qmail@web14311.mail.yahoo.com...
> --- 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