You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Dr. K.M. Ku" <km...@hku.hk> on 2004/03/13 18:30:53 UTC

unable to find line starting with "HTTP" error

Hi all,

I am new to this . I received the error ' unable to find line starting with
"HTTP" error'

I read the digest, but I cannot fix it myself.

Here is the URL: http://www.worldscinet.com/cgi-bin/current_issue.cgi?ijac

I did a connection to the server:

root>telnet www.worldscinet.com 80
Trying 203.208.144.142...
Connected to www.worldscinet.com.
Escape character is '^]'.
GET /cgi-bin/current_issue.cgi?ijac HTTP/1.0

HTTP/1.1 302 Moved
Date: Sat, 13 Mar 2004 17:28:23 GMT
Server: Apache/1.3.20 (Linux/SuSE) PHP/4.0.6 mod_perl/1.26
location: /ijac/14/1401/S02181967041401.html
Connection: close
Content-Type: text/plain

Connection to www.worldscinet.com closed by foreign host.

To go further:

Root>telnet www.worldscinet.com 80
Trying 203.208.144.142...
Connected to www.worldscinet.com.
Escape character is '^]'.
GET /ijac/14/1401/S02181967041401.html HTTP/1.0

<html>
<body bgcolor="#FFFFFF">
<div align="center">

<table border="0" width="633" cellspacing="0" cellpadding="0">
  <tr>
    <td width="450"><a href="http://www.wspc.com/" target="_top"><img
border="0" src="/graphics/journalhp_r02_c01.jpg" height="49"></a></td>
    <td width="150"><a href="/index.html" target="_top"><img border="0"
src="/graphics/headerlogotest.jpg" align="right"></a></td>

 .....


I cannot find the response header. I think this is the origin of the
problem. Is there any workround/patch to this issue? It is passive way to
tell the webmaster to fix the problem.

Thx a lot,
KMKU


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org


Re: unable to find line starting with "HTTP" error

Posted by Ortwin Glück <or...@nose.ch>.

Dr. K.M. Ku wrote:
> Root>telnet www.worldscinet.com 80
> Trying 203.208.144.142...
> Connected to www.worldscinet.com.
> Escape character is '^]'.
> GET /ijac/14/1401/S02181967041401.html HTTP/1.0
> 
> <html>
> <body bgcolor="#FFFFFF">
> <div align="center">
> [...]
> I cannot find the response header. I think this is the origin of the
> problem. Is there any workround/patch to this issue? It is passive way to
> tell the webmaster to fix the problem.

KMKU,

Without response line and headers this is not HTTP. You don't need 
HttpClient. You can just open a socket, write the request line and get 
all the data. That's it.

Ortwin Glück

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org


Re: unable to find line starting with "HTTP" error

Posted by Michael Becke <be...@u.washington.edu>.
Hello KMKU,

It looks like this second URL 
<http://www.worldscinet.com/ijac/14/1401/S02181967041401.html> is not 
being server by an HTTP server.  As you note it just writes a bunch of 
content without any headers.  There's not much we can do about this 
one, as HttpClient only supports working with HTTP servers.

Mike

On Mar 13, 2004, at 12:30 PM, Dr. K.M. Ku wrote:

> Hi all,
>
> I am new to this . I received the error ' unable to find line starting 
> with
> "HTTP" error'
>
> I read the digest, but I cannot fix it myself.
>
> Here is the URL: 
> http://www.worldscinet.com/cgi-bin/current_issue.cgi?ijac
>
> I did a connection to the server:
>
> root>telnet www.worldscinet.com 80
> Trying 203.208.144.142...
> Connected to www.worldscinet.com.
> Escape character is '^]'.
> GET /cgi-bin/current_issue.cgi?ijac HTTP/1.0
>
> HTTP/1.1 302 Moved
> Date: Sat, 13 Mar 2004 17:28:23 GMT
> Server: Apache/1.3.20 (Linux/SuSE) PHP/4.0.6 mod_perl/1.26
> location: /ijac/14/1401/S02181967041401.html
> Connection: close
> Content-Type: text/plain
>
> Connection to www.worldscinet.com closed by foreign host.
>
> To go further:
>
> Root>telnet www.worldscinet.com 80
> Trying 203.208.144.142...
> Connected to www.worldscinet.com.
> Escape character is '^]'.
> GET /ijac/14/1401/S02181967041401.html HTTP/1.0
>
> <html>
> <body bgcolor="#FFFFFF">
> <div align="center">
>
> <table border="0" width="633" cellspacing="0" cellpadding="0">
>   <tr>
>     <td width="450"><a href="http://www.wspc.com/" target="_top"><img
> border="0" src="/graphics/journalhp_r02_c01.jpg" height="49"></a></td>
>     <td width="150"><a href="/index.html" target="_top"><img border="0"
> src="/graphics/headerlogotest.jpg" align="right"></a></td>
>
>  .....
>
>
> I cannot find the response header. I think this is the origin of the
> problem. Is there any workround/patch to this issue? It is passive way 
> to
> tell the webmaster to fix the problem.
>
> Thx a lot,
> KMKU
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: 
> commons-httpclient-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: 
> commons-httpclient-dev-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org