2.1.21.12 okutil_http_post_file


Description

Make a request to a specified server using POST. The request data is the contents of the specified file.

Syntax

int okutil_http_post_file( LPCSTR lpcszURL, LPCSTR lpcszFileName, string * pstrResult, int nConnectTimeout = 0, int nResponseTimeout = 30 )

Parameters

lpcszURL
[input] the web service URL
lpcszFileName
[input] full path name of the file with the request data
pstrResult
[output] result from the call
nConnectTimeout
[input] the number of seconds an HTTP request has to establish a connection before it times out.
nResponseTimeout
[input] the number of seconds to wait for a response.

Return

0 if succcess, otherwise an negative error code

Examples

Remark

See Also

Header to Included

origin.h

Reference