Learn R Programming

websockets (version 1.1.7)

http_vars: Parse http GET or POST variables, returning a list.

Description

Parse http GET or POST variables, returning a list.

Usage

http_vars(socket, header)

Arguments

socket

An open client socket connection.

header

An http header.

Value

A list, possibly NULL, containing the named parsed variables.

Details

Parse http GET or POST variables, returning a list. This function is designed to be used within the static webpage callback described in create_server. This function does not work properly yet with POST messages. If you really need to use POST, use a better web service than this or contribute proper POST handling to this package.

See Also

createContext create_server static_file_service static_text_service