----- Original Message -----
From: "Nic Ferrier" <[EMAIL PROTECTED]>
> //presuming s is the open socket
> OutputStream out=s.getOutputStream();
> PrintWriter p=new PrintWriter(out,true);
> p.println("GET /myservlet/ HTTP/1.0\r");
> p.println("\r");
>
> that's it. You can then read the response from the input stream.
One small doubt here. Is this fragment of code platform independant? I think
it will work on unix but what about windows?
In my understanding HTTP requires that the line gets terminated by CRLF
independant of platform.
I think the statments should be
p.print("GET /myservlet/ HTTP/1.0 \r\n");
p.print("\r\n");
Regds,
Gokul
>
> Nic
>
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html