Title: RE: Help on Issuing a GET from Java to Apache

Randy,

I tried your suggestion and modified the code as follows :

                writer.write("GET " + file + " HTTP/1.0\r\n\r\n");
                writer.flush();

and no luck....

thanks, tony


-----Original Message-----
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 09, 2001 14:42
To: [EMAIL PROTECTED]
Subject: 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:[EMAIL PROTECTED]]
Sent: Monday, July 09, 2001 2:56 PM
To: '[EMAIL PROTECTED]'
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.
*************************************************************
~~

Reply via email to