getHTTPContent {SSOAP}R Documentation

Process raw HTTP header in S object

Description

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.

Usage

getHTTPContent(lines)

Arguments

lines a character vector of the individual lines, usually obtained by reading from an HTTP socket connection (socketConnection) using readLines.

Value

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.

Author(s)

Duncan Temple Lang <duncan@research.bell-labs.com>

References

http://www.w3.org/TR/SOAP/ http://www.omegahat.org/SSOAP, http://www.omegahat.org/bugs.

See Also

.SOAP

Examples






[Package SSOAP version 0.2-1 Index]