Return-Path: Delivered-To: apmail-jakarta-httpclient-user-archive@www.apache.org Received: (qmail 69081 invoked from network); 21 May 2005 10:12:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 21 May 2005 10:12:21 -0000 Received: (qmail 13796 invoked by uid 500); 21 May 2005 10:12:20 -0000 Delivered-To: apmail-jakarta-httpclient-user-archive@jakarta.apache.org Received: (qmail 13764 invoked by uid 500); 21 May 2005 10:12:19 -0000 Mailing-List: contact httpclient-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: "HttpClient User Discussion" Reply-To: "HttpClient User Discussion" Delivered-To: mailing list httpclient-user@jakarta.apache.org Received: (qmail 13743 invoked by uid 99); 21 May 2005 10:12:19 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from mail11.bluewin.ch (HELO mail11.bluewin.ch) (195.186.18.61) by apache.org (qpsmtpd/0.28) with ESMTP; Sat, 21 May 2005 03:12:18 -0700 Received: from [192.168.0.2] (83.76.47.113) by mail11.bluewin.ch (Bluewin 7.2.059) id 42809E8100277D37 for httpclient-user@jakarta.apache.org; Sat, 21 May 2005 10:12:13 +0000 Subject: Re: Problems with a URL, can't connect (IE works for this URL) From: Oleg Kalnichevski To: HttpClient User Discussion In-Reply-To: <00d001c55da5$5948fdf0$3201a8c0@eapac.ericsson.se> References: <00d001c55da5$5948fdf0$3201a8c0@eapac.ericsson.se> Content-Type: text/plain Date: Sat, 21 May 2005 12:12:08 +0200 Message-Id: <1116670328.4851.7.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-4) Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Christophe, You are aware that you are executing HTTP HEAD whereas IE or any other browser usually uses HTTP GET to access a URL? GetMethod of HttpClient produces perfectly reasonable result: [DEBUG] header - ->> "GET /rmhttp/downloadtrial/radio4/inourtime/rss.xml HTTP/1.1[\r][\n]" [DEBUG] header - ->> "User-Agent: Jakarta Commons-HttpClient/3.0-rc2 [\r][\n]" [DEBUG] header - ->> "Host: downloads.bbc.co.uk[\r][\n]" [DEBUG] header - ->> "[\r][\n]" [DEBUG] header - -<< "HTTP/1.0 200 OK[\r][\n]" [DEBUG] header - -<< "Date: Sat, 21 May 2005 11:09:12 GMT[\r][\n]" [DEBUG] header - -<< "Server: RealServer[\r][\n]" [DEBUG] header - -<< "Content-Type: text/xml[\r][\n]" [DEBUG] header - -<< "Last-Modified: Thu, 19 May 2005 11:54:40 GMT [\r][\n]" [DEBUG] header - -<< "Content-Length: 1249[\r][\n]" In Our Time http://www.bbc.co.uk/radio4/history/inourtime/inourtime.shtml In Our Time, BBC Radio 4. The big ideas which form the intellectual agenda of our age are illuminated by some of the best minds. Melvyn Bragg and three guests investigate the history of ideas and debate their application in modern life. en-gb (C) BBC 2005 Thu, 19 May 2005 11:54:31 +0100 Beauty Does beauty really have a moral quality? And is it inherent in things, or in the mind of the observer? How much influence have Plato's ideas had on the history of aesthetics and what has been said to counter or develop them? Thu, 19 May 2005 09:00:00 +0100 http://downloads.bbc.co.uk/rmhttp/downloadtrial/radio4/inourtime/inourtime_20050519-0900_40.mp3 Hope this helps Oleg On Sat, 2005-05-21 at 09:35 +0800, Christophe Kualasoft wrote: > Hi, > > http client fails to connect to a URL, which IE has no problems with. Can > you find any reason for this? Here is the wire below. > > The URL is: > http://downloads.bbc.co.uk/rmhttp/downloadtrial/radio4/inourtime/rss.xml > > Thanks / Christophe > > 2005/05/21 08:49:23:424 SGT [INFO] HttpMethodDirector - Retrying request > > 2005/05/21 08:49:23:424 SGT [DEBUG] HttpConnection - Open connection to > downloads.bbc.co.uk:80 > > 2005/05/21 08:49:23:764 SGT [DEBUG] header - >> "HEAD > /rmhttp/downloadtrial/radio4/inourtime/rss.xml HTTP/1.1[\r][\n]" > > 2005/05/21 08:49:23:774 SGT [DEBUG] HttpMethodBase - Adding Host request > header > > 2005/05/21 08:49:23:774 SGT [DEBUG] header - >> "cache-control: > no-cache[\r][\n]" > > 2005/05/21 08:49:23:774 SGT [DEBUG] header - >> "User-Agent: jPodderv > 0.9a[\r][\n]" > > 2005/05/21 08:49:23:774 SGT [DEBUG] header - >> "Host: > downloads.bbc.co.uk[\r][\n]" > > 2005/05/21 08:49:23:774 SGT [DEBUG] header - >> "[\r][\n]" > > 2005/05/21 08:49:24:125 SGT [DEBUG] HttpMethodDirector - Closing the > connection. > > 2005/05/21 08:49:24:125 SGT [INFO] HttpMethodDirector - I/O exception caught > when processing request: The server downloads.bbc.co.uk failed to respond > > 2005/05/21 08:49:24:125 SGT [DEBUG] HttpMethodDirector - The server > downloads.bbc.co.uk failed to respond > downloads.bbc.co.uk failed to > respond>org.apache.commons.httpclient.NoHttpResponseException: The server > downloads.bbc.co.uk failed to respond > > at > org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.j > ava:1828) > > at > org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.jav > a:1588) > > at > org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:999 > ) > > at > org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethod > Director.java:382) > > at > org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDir > ector.java:168) > > at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:39 > 3) > > at > org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324) > > at > com.jpodder.ui.net.NetActionCommons.getHeadInfo(NetActionCommons.java:429) > > at com.jpodder.ui.tasks.Tasks.collectFeedInfo(Tasks.java:216) > > at > com.jpodder.ui.tasks.TasksControl$CollectFeedInfo.run(TasksControl.java:204) > > at java.lang.Thread.run(Unknown Source) > > 2005/05/21 08:49:24:135 SGT [INFO] HttpMethodDirector - Retrying request > > 2005/05/21 08:49:24:135 SGT [DEBUG] HttpConnection - Open connection to > downloads.bbc.co.uk:80 > > 2005/05/21 08:49:24:475 SGT [DEBUG] header - >> "HEAD > /rmhttp/downloadtrial/radio4/inourtime/rss.xml HTTP/1.1[\r][\n]" > > 2005/05/21 08:49:24:485 SGT [DEBUG] HttpMethodBase - Adding Host request > header > > 2005/05/21 08:49:24:485 SGT [DEBUG] header - >> "cache-control: > no-cache[\r][\n]" > > 2005/05/21 08:49:24:485 SGT [DEBUG] header - >> "User-Agent: jPodderv > 0.9a[\r][\n]" > > 2005/05/21 08:49:24:485 SGT [DEBUG] header - >> "Host: > downloads.bbc.co.uk[\r][\n]" > > 2005/05/21 08:49:24:485 SGT [DEBUG] header - >> "[\r][\n]" > > 2005/05/21 08:49:24:836 SGT [DEBUG] HttpMethodDirector - Closing the > connection. > > 2005/05/21 08:49:24:836 SGT [DEBUG] HttpMethodDirector - Method retry > handler returned false. Automatic recovery will not be attempted > > 2005/05/21 08:49:24:836 SGT [DEBUG] HttpConnection - Releasing connection > back to connection manager. > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: httpclient-user-help@jakarta.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: httpclient-user-help@jakarta.apache.org