On Mon, 2005-10-24 at 03:56 -0700, Kent Gibson wrote: > I spent a good deal of yesterday trying to read this > url: > > http://www.bush-music.com/discover.php > > Clearly this script is misbehaving, but httpclient > just runs for over, no exception, no timeout, nada. > > I have mostly been using get methods, with > getResponseBodyAsStream and getResponeBody. > > I am stumped, does anyone have any ideas? > > I have tried with rc candidate 3 and 4 > > thanks, > > kent >
Kent, The CGI script is simply hopelessly broken. It keeps on sending "fgets(): supplied argument is not a valid stream" warning. [DEBUG] header - >> "GET /discover.php HTTP/1.1[\r][\n]" [DEBUG] header - >> "User-Agent: Jakarta Commons-HttpClient/3.0-rc4[\r][\n]" [DEBUG] header - >> "Host: www.bush-music.com[\r][\n]" [DEBUG] header - >> "[\r][\n]" [DEBUG] header - << "HTTP/1.1 200 OK[\r][\n]" [DEBUG] header - << "Date: Mon, 24 Oct 2005 17:43:06 GMT[\r][\n]" [DEBUG] header - << "Server: Apache/1.3.33 (Unix) PHP/4.3.11[\r][\n]" [DEBUG] header - << "P3P: PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA PRE CURa ADMa DEVa TAIo PSAo PSDo IVAa IVDa CONo TELo OTPi OUR UNRo PUBi OTRo IND DSP CAO COR[\r][\n]" [DEBUG] header - << "X-Powered-By: PHP/4.3.11[\r][\n]" [DEBUG] header - << "Transfer-Encoding: chunked[\r][\n]" [DEBUG] header - << "Content-Type: text/html[\r][\n]" ... [DEBUG] content - << "<br />[\n]" [DEBUG] content - << "<b>Warning</b>: fgets(): supplied argument is not a valid stream resource in <b>/content/www/bush-music.com" Consider using HttpMethod#abort() to force terminate methods that fail to complete normally within a given time or content length threshold Oleg --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
