getHTTPContent {SSOAP} | R Documentation |
This takes the lines read from an HTTP connection
and splits them into the header information
and the content/payload.
It organizes the header information into
a list of name-value pairs
corresponding to the name: value
liness.
The first line typicall gives the status
information and that is split into
a status value (an integer) and
a status message and put into the resulting
table.
And it combines the content lines into a single string.
getHTTPContent(lines)
lines |
a character vector of the individual lines,
usually obtained by reading from an HTTP
socket connection (socketConnection )
using readLines .
|
header |
a named character vector giving
the name-value pairs from the HTTP header.
The status line which is not of the form name: value
|
content |
a string giving the content returned from the HTTP connection. |
Duncan Temple Lang <duncan@research.bell-labs.com>
http://www.w3.org/TR/SOAP/ http://www.omegahat.org/SSOAP, http://www.omegahat.org/bugs.