Re: Problem submitting a POST request "by hand"
| From: | Chris | Date: | Mon, 28 Feb 2005 16:54:44 +0000 |
| Subject: | Re: Problem submitting a POST request "by hand" | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-209601@lists.php.net to get a copy of this message | ||
Vallo Reima wrote:
Hello! I send the parameters from one php script to another via POST method. The solution works (see example below) but the receiver page loads ONLY if I include the echo $c; command after send_host (see PROBLEM!!! line). Otherwise a blank page loads without any error messages. The problem is same with Microsoft-IIS/5.1-PHP/5.0.3 and Apache/2.0.51-PHP/4.3.10... What can I do to get rid of this? Thanks! Vallo [snip]So you calling that function, but then the page stops loading when you do? A possible solution woul be to put \r\n\r\n after $query in your $d string. That would signify the end of the Request body (and the server should not send a response until it gets that.) I'm not sure it'll fix your problem, but it's worth a shot Chris