Common HTTP and FTP WinInet APIs
This article explains about the HTTP and FTP Protocols and some of their common functions.This article also explains about the WinInet and the Gopher Protocols.
The text of this article is not in this database — only its details are. The old site it was published on is gone, but the Internet Archive kept a copy: Common HTTP and FTP WinInet APIs

AnthonyPosted Jan 22, 2009, 10:45 PM EST
Hi, I am Anthony from Singapore. First, thank you for this excellent article. It really helped me to use WinInet. I have a question regarding the speed of HttpSendRequest. I am developing a real-time application. I found that HttpSendRequest is quite slow in processing. I used following code to find the processing time: clock_t start_time = clock(); HttpSendRequest( hData, Iheader, lstrlen( Iheader ), cgiParam, strlen( cgiParam ) ); cout << "time: " << ( ( clock() - start_time ) / CLOCKS_PER_SEC ) << endl; It turned out the processing time was always more than 1 second (usually 2 second and more). Do you have any suggestion to improve the processing time? Thank you.