Re: Opening a socket and sending GET data

From: Date: Fri, 22 Nov 2002 21:40:35 +0000
Subject: Re: Opening a socket and sending GET data
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-125671@lists.php.net to get a copy of this message
--- Todd Cary <todd@aristesoftware.com> wrote: > 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? Yes, I do. It was likely due to a misinterpretation of my response caused by wrapping. The request line needs to be like this: GET $url HTTP/1.1\r\n > $query = "GET $abs_url\r\n" . > "HTTP/1.0\r\n" . You have these on two separate lines here. Chris

« previous php.general (#125671) next »