Networking Forums

Networking Forums > Computer Networking > Linux Networking > Unable to Get Response From Some Web Servers

Reply
Thread Tools Display Modes

Unable to Get Response From Some Web Servers

 
 
Ammar Al-Sayegh
Guest
Posts: n/a

 
      07-14-2005, 09:29 PM
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


 
Reply With Quote
 
 
 
 
Dave {Reply Address in.sig}
Guest
Posts: n/a

 
      07-14-2005, 10:04 PM
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
 
Keith Keller
Guest
Posts: n/a

 
      07-14-2005, 10:33 PM
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
 
David Schwartz
Guest
Posts: n/a

 
      07-14-2005, 11:50 PM

"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
 
Ammar Al-Sayegh
Guest
Posts: n/a

 
      07-15-2005, 12:04 AM
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
 
David Schwartz
Guest
Posts: n/a

 
      07-15-2005, 12:13 AM

"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

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dedicated servers with 24/7 live chat ticket and email support fullymanaged servers with 5 Dedicated IPS.www.servers500.com Master reseller hosting Provider Wireless Internet 0 01-15-2011 01:36 PM
Unable to connect to Nintendo Wi-Fi servers, please help blork Wireless Internet 0 01-17-2006 04:17 PM
Unable to See Windows Servers Thomas M Windows Networking 4 09-01-2005 03:26 PM
No network Connectivity between 2 servers (windows 2003 servers) ImraneA Windows Networking 1 11-26-2004 11:18 AM
Unable to Unauthorize DHCP servers Jerry Windows Networking 0 05-27-2004 08:32 PM



1 2 3 4 5 6 7 8 9 10 11