|
08.12.2014, 10:29 | #1 |
Участник
|
Цитата:
Примерно вот так: X++: _httpOpenRequest = new DLLFunction(_winInet, 'HttpOpenRequestA'); _httpOpenRequest.returns(ExtTypes::DWord); _httpOpenRequest.arg(ExtTypes::DWORD); _httpOpenRequest.arg(ExtTypes::String); _httpOpenRequest.arg(ExtTypes::String); _httpOpenRequest.arg(ExtTypes::String); _httpOpenRequest.arg(ExtTypes::String); _httpOpenRequest.arg(ExtTypes::DWORD); _httpOpenRequest.arg(ExtTypes::DWORD); _httpOpenRequest.arg(ExtTypes::DWORD); _httpSendRequest = new DLLFunction(_winInet, 'HttpSendRequestA'); _httpSendRequest.returns(ExtTypes::DWord); _httpSendRequest.arg(ExtTypes::DWord); _httpSendRequest.arg(ExtTypes::String); _httpSendRequest.arg(ExtTypes::DWord); _httpSendRequest.arg(ExtTypes::String); _httpSendRequest.arg(ExtTypes::DWord); int OpenRequest(int hdl, str _url, str _verb = "POST", int flags = 0) { ; return _httpOpenRequest.call(hdl, _verb, _url, '', '', 0, flags, 0); } int SendRequest(int handle, str hdr, str data) { ; return _httpSendRequest.call(handle, hdr, strlen(hdr), data, strlen(data)); } Последний раз редактировалось Lucky13; 08.12.2014 в 10:37. |
|
|
За это сообщение автора поблагодарили: smailik (1). |