|
||||||||
|
|
|||||||
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|
Hi All,
I have a strange problem when I try to connect to some web servers from my Fedora RC3 box. I can telnet to all web servers on port 80, but some will respond with pages when I execute GET / command, while others time out without response. Here is an example: telnet apache.org 80 Trying 209.237.227.195... Connected to apache.org. Escape character is '^]'. GET / <CR> <CR> (nothing happens.. the connection times out) Note that when I use HEAD / HTTP/1.0 command with servers that don't respond with GET / commands, I get full header. telnet apache.org 80 Trying 209.237.227.195... Connected to apache.org. Escape character is '^]'. HEAD / HTTP/1.0 HTTP/1.1 200 OK Date: Thu, 14 Jul 2005 21:23:03 GMT Server: Apache/2.0.53 (Unix) Last-Modified: Mon, 09 May 2005 00:36:52 GMT ETag: "2da78f8-2d14-a2d27100" Accept-Ranges: bytes Content-Length: 11540 Cache-Control: max-age=86400 Expires: Fri, 15 Jul 2005 21:23:03 GMT Connection: close Content-Type: text/html; charset=ISO-8859-1 Connection closed by foreign host. Any clue as to what the problem might be? Thanks. -ammar Ammar Al-Sayegh |
|
#2
|
|||
|
|||
|
In message <5PABe.22587$O56.8000@trnddc07>, Ammar Al-Sayegh wrote:
> Hi All, > > I have a strange problem when I try to connect to > some web servers from my Fedora RC3 box. I can > telnet to all web servers on port 80, but some will > respond with pages when I execute GET / command, > while others time out without response. > > Here is an example: > > telnet apache.org 80 > Trying 209.237.227.195... > Connected to apache.org. > Escape character is '^]'. > GET / > <CR> > <CR> > > (nothing happens.. the connection times out) > > > Note that when I use HEAD / HTTP/1.0 command with > servers that don't respond with GET / commands, I > get full header. > Try GET / HTTP/1.0 <CR> <CR> -- Dave mail da (E-Mail Removed) (without the space) http://www.llondel.org/ So many gadgets, so little time... |
|
#3
|
|||
|
|||
|
On 2005-07-14, Ammar Al-Sayegh <(E-Mail Removed)> wrote:
> > I have a strange problem when I try to connect to > some web servers from my Fedora RC3 box. I can > telnet to all web servers on port 80, but some will > respond with pages when I execute GET / command, > while others time out without response. > > Here is an example: > > telnet apache.org 80 > Trying 209.237.227.195... > Connected to apache.org. > Escape character is '^]'. > GET / ><CR> ><CR> > > (nothing happens.. the connection times out) AS you're doing with your HEAD request, you really should be providing the http version with your GET request. Try issuing GET / HTTP/1.0 to apache.org, and you'll get better results. If you are trying to capture this output, you might want to look at the Perl LWP module, which provides programs (and, if requested, a command-line GET alias) to automate GET/HEAD requests. --keith -- kkeller-(E-Mail Removed) (try just my userid to email me) AOLSFAQ=http://wombat.san-francisco.ca.us/cgi-bin/fom see X- headers for PGP signature information |
|
#4
|
|||
|
|||
|
"Ammar Al-Sayegh" <(E-Mail Removed)> wrote in message news:5PABe.22587$O56.8000@trnddc07... > I have a strange problem when I try to connect to > some web servers from my Fedora RC3 box. I can > telnet to all web servers on port 80, but some will > respond with pages when I execute GET / command, > while others time out without response. The ones that time out don't support the protocol you're using. You should use HTTP 1.0 or later, and you will find better support. (A simple "GET /" is not a legal HTTP 1.0 request.) DS |
|
#5
|
|||
|
|||
|
Hello All,
Everyone pointed out that I should use full request headers, but I don't think this is the problem, because when I use just GET / from my home computer or other computers on another networks with the same sites, I get full response. It's only in one colocated Linux box that I have this problem, that cannot open these sites using web browsers such as firefox and lynx, or connect directly using telnet. Also, I tried using full request headers, but it didn't really help. Here is an example: telnet www.bbc.co.uk 80 Trying 212.58.240.120... Connected to www.bbc.co.uk. Escape character is '^]'. GET / HTTP/1.1 Host: www.bbc.co.uk Connection: close <CR> <CR> (still no response, just hanging) It's very strange behaviour that I'm not even sure how to diagnose. Any suggestion? -ammar |
|
#6
|
|||
|
|||
|
"Ammar Al-Sayegh" <(E-Mail Removed)> wrote in message news:s4DBe.18336$Ll6.14912@trnddc06... > It's only > in one colocated Linux box that I have this problem, that cannot > open these sites using web browsers such as firefox and lynx, or > connect directly using telnet. Also, I tried using full request > headers, but it didn't really help. Here is an example: Talk to the colocation provider. Look at the connection with 'tcpdump'. DS |
![]() |
| Tags |
| response, servers, unable, web |
| Thread Tools | |
| Display Modes | |
|
|