Title / Description
Code 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; }
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code