dcsimg
http/1.1 and Socket
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Panos_Koup
Posted On:   Sunday, October 7, 2001 11:30 PM

Hi, can i send in a web server a http request using http/1.1 protocol.(i try but i get a "close peer "(sth like that) exception)? In my code i write: .... s = new Socket(url.getHost(),80); .... OutputStream sout = s.getOutputStream(); PrintWriter toServer = new PrintWriter(sout,true); toServer.print("GET " + File + "HTTP/1.1 "); I send without any problem a request using HTTP/1.0 but not with HTTP/1.1 (does java.net support HTTP/1.1?????) Any idea?? Thanx    More>>

Hi,
can i send in a web server a http request using http/1.1 protocol.(i try
but i get a "close peer "(sth like that)
exception)?
In my code i write:

....

s = new Socket(url.getHost(),80);
....

OutputStream sout = s.getOutputStream();


PrintWriter toServer = new PrintWriter(sout,true);

toServer.print("GET " + File + "HTTP/1.1
");


I send without any problem a request
using HTTP/1.0 but not with HTTP/1.1
(does java.net support HTTP/1.1?????)


Any idea??

Thanx

   <<Less
About | Sitemap | Contact