Sockets and Header data

From: Date: Tue, 11 Mar 2003 22:32:27 +0000
Subject: Sockets and Header data
Groups: php.general 
Request: Send a blank email to php-general+get-139192@lists.php.net to get a copy of this message
Ever since PHP 3, I have been using Sockets to pass GET and POST information. Yes, now that there is the caching ability, I no longer need to do it that way, however it has never failed me and since I deal with some high visibility applications, I am reluctant to change. With my experience limited to GET and POST, I do not know the format of data that is sent via the PHP header() function. For instance, if I send header("Content-type: text/html"); header("Content-Disposition: filename=myfile"); what is actually sent? If I send POST data, the data string looks like POST http://209.204.172.137:80/mysql/php/menu.php HTTP/1.0 Accept-Language: en-us Host: 209.204.172.137:80 Connection: close Content-type: application/x-www-form-urlencoded Content-length: 21 session_id=1047421540 How would the two header examples above look? Is there a PHP application that can intercept the Socket stream? Todd -- Ariste Software, Petaluma, CA 94952 \n info@aristesoftware.com

« previous php.general (#139192) next »