I must be missing something because when I execute the following code, open the socket, and send the query, the form that the info is going to gets created but it is corrupted. Do you see any obvious error?
Todd
if (!empty($request)) {
$path = $path . "?" . urlencode($request) . "\r\n";
}
//Use the echo below to test
//echo('Path: ' . $path . '<br><br>');
# build the absolute URL
$abs_url = "http://$host:$port$path";
//Use the echo below to test
//echo('Abs_url: ' . $abs_url . '<br><br>');
# now we build our query
$query = "GET $abs_url\r\n" .
"HTTP/1.0\r\n" .
"Accept-Language: en-us\r\n".
"Host: $host:$port\r\n".
"Connection: close\r\n";
//Use the echo below to test
//echo('Query: ' . $query . '<br><br>');
//exit;
Chris Shiflett wrote:
This is your same HTTP request using the GET method rather than POST to send the same data.GET http://209.204.172.137/_calendar/php/selectevent.php?pa_county=&reenter_page=1&sel_from_mo=November&sel_from_dy=22&sel_from_yr=2002&sel_to_mo=December&sel_to_dy=06&sel_to_yr=2002 HTTP/1.1 Host: 209.204.172.137 Accept-Language: en-us Connection: Close --- Todd Cary <[EMAIL PROTECTED]> wrote:I am able to open a socket and send POST data, however I do not know the format of doing the same for the GET method.
--