>>> Gokul Singh <[EMAIL PROTECTED]> 22-Feb-01 6:36:58 AM >>>

>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");

You are of course quite right.

A very small point of interest is that most servers and clients don't
seem to care that much about the CRLF ending. You can normally get
away with just "\n".


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

Reply via email to