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

Sends an HTTP request to a specified server. Requests are of type "key=value" using the header Content-Type: application/x-www-form-urlencoded

Parameters
methodHTTP method
urlURL
cookieCookie value
refererValue of the Referer header of the HTTP request
timeoutTimeout in milliseconds
dataData array of the HTTP message body
data_sizeSize of the data[] array
resultAn array containing server response data
result_headersServer response headers
Returns
HTTP server response code or -1 for an error