TradeMUX SDK Documentation  1.0
TradeMUX SDK Documentation
int WebRequest ( string  method,
string  url,
string  headers,
int  timeout,
char[]  data,
out char[]  result,
out string  result_headers 
)

Sends an HTTP request to a specified server. Requests may be of any type specifying the custom set of headers for a more flexible interaction with various Web services

Parameters
methodHTTP method
urlURL
headersRequest headers of type "key: value", separated by a line break "\r\n"
timeoutTimeout in milliseconds
dataData array of the HTTP message body
resultAn array containing server response data
result_headersServer response headers
Returns
HTTP server response code or -1 for an error