Re: [Rd] Problems Reading from Socket

From: <mschaff_at_bu.edu>
Date: Sun 23 Jul 2006 - 21:15:09 GMT

To answer my own question (and maybe help someone else), it turns out my web server was sending chunked responses and inserting chunk sizes before each data chunk.

Changing the line:

request<-paste("POST ",path," HTTP/1.1\nHost: ",host...

to

request<-paste("POST ",path," HTTP/1.0\nHost: ",host...

disables chunked reponses and allows R to read directly from the socket without additional parsing. So this wasn't really an R problem, but I thought this detail might help someone else.

--
Mike

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Mon Jul 24 07:18:15 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Sun 23 Jul 2006 - 22:27:57 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.