cpp
C++
code posted
by
cpp
created at 20 Jun 12:29
Edit
|
Back
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
int HTTP_Client::Open (Ztring Url) { if (Handle) Close(); //init Handle=HTTPClientOpenRequest(0); //Mehtod if (HTTPClientSetVerb(Handle, VerbGet)!=0) { Close(); return 0; } //Send request if (HTTPClientSendRequest(Handle, (char*)(Url.To_Local().c_str()), NULL, 0, FALSE, 0, 0)!=0) { Close(); return 0; } //Receive response if (HTTPClientRecvResponse(Handle, 3)!=0) { Close(); return 0; } return 1; } |
556 Bytes in 2 ms with coderay