Networking Forums  

Go Back   Networking Forums > Networking Newsgroups > Linux Networking

Unable to Get Response From Some Web Servers

Reply
 
Thread Tools Display Modes
  #1  
Old 07-14-2005, 10:29 PM
Default Unable to Get Response From Some Web Servers



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
Reply With Quote
  #2  
Old 07-14-2005, 11:04 PM
Dave {Reply Address in.sig}
Guest
 
Posts: n/a
Default Re: Unable to Get Response From Some Web Servers

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...
Reply With Quote
  #3  
Old 07-14-2005, 11:33 PM
Keith Keller
Guest
 
Posts: n/a
Default Re: Unable to Get Response From Some Web Servers

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

Reply With Quote
  #4  
Old 07-15-2005, 12:50 AM
David Schwartz
Guest
 
Posts: n/a
Default Re: Unable to Get Response From Some Web Servers


"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


Reply With Quote
  #5  
Old 07-15-2005, 01:04 AM
Ammar Al-Sayegh
Guest
 
Posts: n/a
Default Re: Unable to Get Response From Some Web Servers

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


Reply With Quote
  #6  
Old 07-15-2005, 01:13 AM
David Schwartz
Guest
 
Posts: n/a
Default Re: Unable to Get Response From Some Web Servers


"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


Reply With Quote
Reply

Tags
response, servers, unable, web

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 04:30 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.