Message-ID: <20060723171509.icqpilye8qo48sks@www.bu.edu>
Date: 2006-07-23T21:15:09Z
From: mschaff at bu.edu
Subject: Problems Reading from Socket
In-Reply-To: <017A38B8-7167-4CCA-98DA-4411ADCB1396@bu.edu>
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