Re: Problem submitting a POST request "by hand"

From: Date: Mon, 28 Feb 2005 20:31:21 +0000
Subject: Re: Problem submitting a POST request "by hand"
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-209615@lists.php.net to get a copy of this message
--- Vallo <vallo@hareko.ee> wrote: > I send something using fsockopen() & fputs() :-) Yes, you send something to another server, not the client. You send stuff to the client by using things like echo. > Client sends request (submits form to my script) to me (i.e. server) > and I want to send back to client a page with POST parameters from my > script. But the page doesn't display in the clients browser (blank > page opens). Question: what is missing in this script? Output. If you send nothing to the client, the client gets nothing. I promise I'm telling the truth. :-) It doesn't matter what else you do. You can connect to a thousand different servers, collect data from a thousand different databases, and do stuff more complex than any PHP developer has ever done before. However, if you never output anything, the client is going to see a blank page. Hope that helps. Chris ===== Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly HTTP Developer's Handbook - Sams Coming Soon http://httphandbook.org/

« previous php.general (#209615) next »