Put a GET /index?hello HTTP/1.1 using Net_Socket - Not working, very easy.

From: Date: Mon, 17 Mar 2008 05:37:34 +0000
Subject: Put a GET /index?hello HTTP/1.1 using Net_Socket - Not working, very easy.
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-28652@lists.php.net to get a copy of this message
I am new on this, but I am just trying to post a GET /index?hello HTTP/1.1 command on my domain's url. But, on the access_log of apache. It is just posting the url that it was accessed. And /index?hello is not shown. Is there something wrong here? [17/Mar/2008:13:30:18 +0800] "GET /index HTTP/1.1" 200 10251 <?php require_once("Net/Socket.php"); $socket = new Net_Socket() ; // open connection $socket->connect("http://www.example.com", 80, true, 30); // I tried to change this to my domain // Send data including linebreak $socket->writeLine("GET /index?hello HTTP/1.1"); $socket->writeLine("Host: example.com"); $socket->writeLine("Connection: close"); // receive data until linebreak $result = $socket->readLine(); // receive a number of data $result = $socket->read(512); // close connection $socket->disconnect(); ?> Please help -- Louie Miranda (lmiranda@gmail.com) http://www.axishift.com Security Is A Series Of Well-Defined Steps chmod -R 0 / ; and smile :)

« previous php.pear.general (#28652) next »