You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Randy Layman <ra...@aswethink.com> on 2001/07/09 20:42:06 UTC

RE: Help on Issuing a GET from Java to Apache

	I believe that your problem lies in the "\r\n\n" at the end of your
request.  The spec doesn't specify the \r as a valid character here, but
since Apache works with my Telnet, I'm guessing that both "\r\n\r\n" and
"\n\n" will work.

	Randy

-----Original Message-----
From: Brida, Tony [mailto:TBrida@WilmingtonTrust.com]
Sent: Monday, July 09, 2001 2:56 PM
To: 'tomcat-user@jakarta.apache.org'
Subject: Help on Issuing a GET from Java to Apache


hi, 
I've copied a java program that opens a socket and returns a file.  The
program works well 
against URL's directed to other sites but not against my Apache site running
on NT.  I've ran 
the java program from the Apache site and from another box.  Sockets are
created just fine, 
it just looks like Apache is not serving up the file.  I thought it might be
a problem with 
HTTP/1.0 because Apache is HTTP 1.1 but no luck. 
Here's what's being written out : 
(note this is working on other sites :-) ) 
                writer.write("GET " + file + " HTTP/1.0\r\n\n"); 
                writer.flush(); 
regards, tony 


*************************************************************
This e-mail and any files transmitted with it may
contain confidential and/or proprietary information.
It is intended solely for the use of the individual
or entity who is the intended recipient.
Unauthorized use of this information is prohibited.
If you have received this in error, please contact
the sender by replying to this message and delete
this material from any system it may be on.
************************************************************* 
~~