Categories

CODE
Visual C++ Programming
C++ (Non Visual C++ Issues)
Modern Windows Apps (Metro)
C++ and WinAPI
Managed C++ and C++/CLI
Visual C++ Bugs & Fixes
Graphics Programming
Multithreading
Network Programming
Driver Development
Visual Basic 6.0 Programming
Visual Basic .NET
Crystal Reports
C-Sharp Programming
Managed C++
Visual Basic .NET
ASP.NET
.NET Framework
ADO.NET
Windows Presentation Foundation (WPF) & XAML forum
Silverlight
.NET Installation and Configuration Issues
Java Programming
AJAX
Scripting - Client Side
Database
XML
Wireless/Mobile Development
Assembly
Scripting - Server Side (PHP, Perl, etc.)
Python
General Developer Topics
Project Planning, Design, and Management
Testers and Testing
Algorithms & Data Structures
General Discussion / Chit Chat
Announcements, Press Releases, & News
Feedback
Articles Suggestions
Testing Area
Programming Projects
C# Game(s) Project
Game Engine Project
C++ Coding Project
Project: Code War
Slow Chat: Talk with Microsoft Developer Teams
Slow Chat: Developing Multithreaded Applications
Slow Chat: C++0x
Slow Chat: Visual C++: Yesterday, Today, and Tomorrow
Directory Services
General Windows and DNA Programming
Windows OS Issues
Open Positions (Jobs)
Looking for Work
Visual Basic .NET FAQs
Visual Basic FAQs
CodeGuru Individual FAQs
CodeGuru Individual Visual Basic FAQs

Resources

Java Database
Linux
Coding
Mobile
Hardware
Software Development
Software Development
iOS,OS X
iOS,OS X
ORACLE
IBM DEVELOPER
IBM DEVELOPER
MSDN
MSDN


Tags

Network Programming

Chat about all aspects of network programming, including raw sockets, Winsock API, BSD sockets, MFC-based CSocket, CAsyncSocket, and other network-related topics.

Problems with Wininet ...


OK Gurus. Hopefully someone can shed some light on this.    I'm writing a basic application whose job is intended to send a POST request, the body of which is the contents of a local file, to a CE 5.0 HTTP server using SSL. However, i'm having a difficult time sorting this all out.     In a nutshell, I'm following these steps:    1) InternetOpen (not ASYNC)  2) InternetConnect  3) HttpSendRequestEx  4) InternetWriteFile  5) HttpEndRequest (if this generates ERROR_INTERNET_FORCE_RETRY, go to step 3)      everything seems to work fine with small files. But there seems to be a magic point at 49152 bytes, where WinInet will start exploding and behaving badly in general.    Commonly, i'll see steps 1-5 go through, then step 5 will generate ERROR_INTERNET_FORCE_RETRY and i resend the request, some times this is repeated two times in a row. Using WireShark, i don't see any data transfer until the last try.    The bad behavior i mention at the magic 49152 byte point manifests itself with an error code of 10060 (WSAETIMEDOUT) or 12002 (ERROR_INTERNET_TIMEOUT) or most commonly 12030 (ERROR_INTERNET_CONNECTION_ABORTED)...    some times i even get a full on 0x00000005 null pointer crash in MSVCRT.dll traced through a thick layer of wininet.dll calls.    It seems to me that this always happens on the first try, when nothing is actually sent to the server... maybe that causes some kind of buffer overflow? Is there a way to make sure the connection is proper before i send the data? MSDN mentions using a HttpSendRequest call before (so at step 2.5) but it does nothing for me.    Anyway, i'd be ecstatic if someone could offer some advice on this matter.    - Popoi  				  			

  				  					If you're getting null pointer dereference, it's likely that the problem is in your code.  				  			

  				  					Well here's a test app i wrote to try to recalibrate my brain. it's acting the same way:    	Code:  		////////////////////////////// 	// 	TTRACE("InternetOpen\n"); 	HINTERNET hInternet = InternetOpen( "client", INTERNET_OPEN_TYPE_DIRECT, NULL, NULL, INTERNET_FLAG_ASYNC); 	Check( hInternet != NULL ); 	  	////////////////////////////// 	// 	INTERNET_STATUS_CALLBACK cb = InternetSetStatusCallback( hInternet, (INTERNET_STATUS_CALLBACK)InternetSig); 	Check( cb != INTERNET_INVALID_STATUS_CALLBACK );  	////////////////////////////// 	// INTERNET_STATUS_HANDLE_CREATED 	TTRACE("InternetConnect\n"); 	HINTERNET hConnect = InternetConnect( hInternet, "192.168.21.1", 443, "DefaultUser", "secret", INTERNET_SERVICE_HTTP,  0, dwContext); 	Check( hConnect != NULL ); 	WaitForSig(INTERNET_STATUS_HANDLE_CREATED, dwContext );  	////////////////////////////// 	// INTERNET_STATUS_HANDLE_CREATED 	TTRACE("HttpOpenRequest\n"); 	HINTERNET hRequest = HttpOpenRequest( hConnect, "POST", "/ocs?operation=put&path=a", HTTP_VERSION, NULL, pTypes, dwRequestFlags, dwContext); 	Check( hRequest != NULL ); 	WaitForSig(INTERNET_STATUS_HANDLE_CREATED, dwContext );   	////////////////////////////// 	// 	TTRACE("Open File\n"); 	BOOL bOpen = file.Open("C:\\TestFile.dat", CFile::modeRead); 	Check( bOpen ); 	Check( file.GetLength() != 0 );  	char* pBuffer = new char[file.GetLength()]; 	Check( pBuffer != NULL ); 	 	DWORD dwSize = file.ReadHuge(pBuffer, file.GetLength() ); 	Check( dwSize != 0 );  	buffs.dwBufferLength = file.GetLength(); 	buffs.lpvBuffer = pBuffer;  	// ignore unknown CA or we fail. 	DWORD dwFlags; 	DWORD dwBuffLen = sizeof(dwFlags); 	InternetQueryOption(hRequest, INTERNET_OPTION_SECURITY_FLAGS, (LPVOID)&dwFlags, &dwBuffLen); 	dwFlags |= SECURITY_FLAG_IGNORE_UNKNOWN_CA; 	InternetSetOption(hRequest, INTERNET_OPTION_SECURITY_FLAGS, &dwFlags, sizeof (dwFlags) ); 	  DO_IT_AGAIN: 	TTRACE("HttpSendRequestEx\n"); 	BOOL bSend = HttpSendRequestEx(hRequest, &buffs, NULL, 0, dwContext); 	WaitForSig(INTERNET_STATUS_REQUEST_COMPLETE, dwContext );  	////////////////////////////// 	// 	TTRACE("HttpEndRequest\n"); 	BOOL bEnd = HttpEndRequest(hRequest, NULL, 0, dwContext); 	//Check( bEnd ); 	 	WaitForSig(INTERNET_STATUS_REQUEST_COMPLETE, dwContext);  	if ( dwLastError == ERROR_INTERNET_FORCE_RETRY ) 		goto DO_IT_AGAIN;  	if ( pBuffer ) 		delete [] pBuffer;   Here is the output of the code sending a 347,341 byte long file. THIS DOES NOT WORK    	Code:  	[0.000] InternetOpen Loaded 'C:\WINDOWS\system32\shell32.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\ws2_32.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\ws2help.dll', no matching symbolic information found. [0.062] InternetConnect [0.062] Waitforsig waiting for 666:60 Loaded 'C:\WINDOWS\system32\mswsock.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\hnetcfg.dll', no matching symbolic information found. [0.062] 666:60 INTERNET_STATUS_HANDLE_CREATED [0.062] 	dwResult: 13369352 [0.062] 	dwError: 0 [0.062] Waitforsig OK [0.062] HttpOpenRequest [0.078] Waitforsig waiting for 666:60 Loaded 'C:\WINDOWS\system32\crypt32.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\msasn1.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\wshtcpip.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\version.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\userenv.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\netapi32.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\wintrust.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\imagehlp.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\schannel.dll', no matching symbolic information found. [0.078] 666:60 INTERNET_STATUS_HANDLE_CREATED [0.078] 	dwResult: 13369356 [0.078] 	dwError: 0 [0.078] Waitforsig OK [0.078] Open File (347341 bytes) [0.078] HttpSendRequestEx [0.140] Waitforsig waiting for 666:100 Loaded 'C:\WINDOWS\system32\rasapi32.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\rasman.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\tapi32.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\rtutils.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\winmm.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\msapsspc.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\msvcrt40.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\digest.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\msnsspc.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\msvcrt40.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\msv1_0.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\cryptdll.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\iphlpapi.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\sensapi.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\rasadhlp.dll', no matching symbolic information found. [0.219] 666:10 INTERNET_STATUS_RESOLVING_NAME [0.219] 	Host Name: 192.168.21.1 [0.219] 666:11 INTERNET_STATUS_NAME_RESOLVED [0.219] 	Host Name: 192.168.21.1 [0.219] 666:20 INTERNET_STATUS_CONNECTING_TO_SERVER [0.219] 	SOCKADDR.sa_data: 192.168.21.1 [0.219] 	SOCKADDR.sa_family: AF_INET [0.281] 666:21 INTERNET_STATUS_CONNECTED_TO_SERVER [0.281] 	SOCKADDR.sa_data: 192.168.21.1 [0.281] 	SOCKADDR.sa_family: AF_INET Loaded 'C:\WINDOWS\system32\rsaenh.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\dssenh.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\xpsp2res.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\cryptnet.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\psapi.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\winhttp.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\wldap32.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\setupapi.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\cabinet.dll', no matching symbolic information found. [0.547] 666:30 INTERNET_STATUS_SENDING_REQUEST [0.547] 666:31 INTERNET_STATUS_REQUEST_SENT [0.547] 	Bytes sent: 190 [0.547] 666:30 INTERNET_STATUS_SENDING_REQUEST [0.547] 666:31 INTERNET_STATUS_REQUEST_SENT [0.547] 	Bytes sent: 16384 [0.547] 666:30 INTERNET_STATUS_SENDING_REQUEST [0.547] 666:31 INTERNET_STATUS_REQUEST_SENT [0.547] 	Bytes sent: 16384 [0.547] 666:30 INTERNET_STATUS_SENDING_REQUEST [0.547] 666:31 INTERNET_STATUS_REQUEST_SENT [0.547] 	Bytes sent: 16384 [0.547] 666:30 INTERNET_STATUS_SENDING_REQUEST [0.547] 666:100 INTERNET_STATUS_REQUEST_COMPLETE [0.547] 	dwResult: 0 [0.547] 	dwError: 12030 [0.609] Waitforsig OK [0.609] HttpEndRequest [0.609] Waitforsig waiting for 666:100 [0.609] 666:40 INTERNET_STATUS_RECEIVING_RESPONSE [0.609] 666:50 INTERNET_STATUS_CLOSING_CONNECTION [0.609] 666:51 INTERNET_STATUS_CONNECTION_CLOSED [0.609] 666:100 INTERNET_STATUS_REQUEST_COMPLETE [0.609] 	dwResult: 0 [0.609] 	dwError: 12030 [0.703] Waitforsig OK [0.703] Finished   this is the output when sending a file that's less than the "magic number" THIS WORKS FINE    	Code:  	[0.000] InternetOpen Loaded 'C:\WINDOWS\system32\shell32.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\ws2_32.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\ws2help.dll', no matching symbolic information found. [0.062] InternetConnect [0.062] Waitforsig waiting for 666:60 [0.062] 666:60 INTERNET_STATUS_HANDLE_CREATED [0.062] 	dwResult: 13369352 [0.062] 	dwError: 0 [0.062] Waitforsig OK [0.062] HttpOpenRequest [0.078] Waitforsig waiting for 666:60 Loaded 'C:\WINDOWS\system32\mswsock.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\crypt32.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\msasn1.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\hnetcfg.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\version.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\wshtcpip.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\userenv.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\netapi32.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\wintrust.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\imagehlp.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\schannel.dll', no matching symbolic information found. [0.078] 666:60 INTERNET_STATUS_HANDLE_CREATED [0.078] 	dwResult: 13369356 [0.078] 	dwError: 0 [0.078] Waitforsig OK [0.078] Open File (43991 bytes) [0.078] HttpSendRequestEx [0.125] Waitforsig waiting for 666:100 Loaded 'C:\WINDOWS\system32\rasapi32.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\rasman.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\tapi32.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\rtutils.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\winmm.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\msapsspc.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\msvcrt40.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\digest.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\msnsspc.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\msvcrt40.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\msv1_0.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\cryptdll.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\iphlpapi.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\sensapi.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\rasadhlp.dll', no matching symbolic information found. [0.219] 666:10 INTERNET_STATUS_RESOLVING_NAME [0.219] 	Host Name: 192.168.21.1 [0.219] 666:11 INTERNET_STATUS_NAME_RESOLVED [0.219] 	Host Name: 192.168.21.1 [0.219] 666:20 INTERNET_STATUS_CONNECTING_TO_SERVER [0.219] 	SOCKADDR.sa_data: 192.168.21.1 [0.219] 	SOCKADDR.sa_family: AF_INET [0.266] 666:21 INTERNET_STATUS_CONNECTED_TO_SERVER [0.266] 	SOCKADDR.sa_data: 192.168.21.1 [0.266] 	SOCKADDR.sa_family: AF_INET Loaded 'C:\WINDOWS\system32\rsaenh.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\dssenh.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\xpsp2res.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\cryptnet.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\psapi.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\winhttp.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\wldap32.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\setupapi.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\cabinet.dll', no matching symbolic information found. [0.547] 666:30 INTERNET_STATUS_SENDING_REQUEST [0.547] 666:31 INTERNET_STATUS_REQUEST_SENT [0.547] 	Bytes sent: 189 [0.547] 666:30 INTERNET_STATUS_SENDING_REQUEST [0.547] 666:31 INTERNET_STATUS_REQUEST_SENT [0.547] 	Bytes sent: 16384 [0.547] 666:30 INTERNET_STATUS_SENDING_REQUEST [0.547] 666:31 INTERNET_STATUS_REQUEST_SENT [0.547] 	Bytes sent: 16384 [0.547] 666:30 INTERNET_STATUS_SENDING_REQUEST [0.547] 666:31 INTERNET_STATUS_REQUEST_SENT [0.547] 	Bytes sent: 11286 [0.547] 666:100 INTERNET_STATUS_REQUEST_COMPLETE [0.547] 	dwResult: 1 [0.547] 	dwError: 0 [0.594] Waitforsig OK [0.594] HttpEndRequest [0.594] Waitforsig waiting for 666:100 [0.594] 666:40 INTERNET_STATUS_RECEIVING_RESPONSE [0.734] 666:41 INTERNET_STATUS_RESPONSE_RECEIVED Loaded 'C:\WINDOWS\system32\security.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\dnsapi.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\winrnr.dll', no matching symbolic information found. Loaded 'C:\Program Files\Bonjour\mdnsNSP.dll', no matching symbolic information found. [0.734] 666:100 INTERNET_STATUS_REQUEST_COMPLETE [0.734] 	dwResult: 0 [0.734] 	dwError: 12032 [0.797] Waitforsig OK [0.797] HttpSendRequestEx [0.797] Waitforsig waiting for 666:100 [0.797] 666:40 INTERNET_STATUS_RECEIVING_RESPONSE [0.797] 666:41 INTERNET_STATUS_RESPONSE_RECEIVED [0.797] 666:30 INTERNET_STATUS_SENDING_REQUEST [0.797] 666:31 INTERNET_STATUS_REQUEST_SENT [0.797] 	Bytes sent: 263 [0.797] 666:100 INTERNET_STATUS_REQUEST_COMPLETE [0.797] 	dwResult: 1 [0.797] 	dwError: 0 [0.906] Waitforsig OK [0.906] HttpEndRequest [0.906] Waitforsig waiting for 666:100 [0.906] 666:40 INTERNET_STATUS_RECEIVING_RESPONSE [0.937] 666:41 INTERNET_STATUS_RESPONSE_RECEIVED [0.937] 666:100 INTERNET_STATUS_REQUEST_COMPLETE [0.937] 	dwResult: 0 [0.937] 	dwError: 12032 [1.000] Waitforsig OK [1.000] HttpSendRequestEx [1.000] Waitforsig waiting for 666:100 [1.000] 666:40 INTERNET_STATUS_RECEIVING_RESPONSE [1.000] 666:41 INTERNET_STATUS_RESPONSE_RECEIVED [1.000] 666:30 INTERNET_STATUS_SENDING_REQUEST [1.000] 666:31 INTERNET_STATUS_REQUEST_SENT [1.000] 	Bytes sent: 403 [1.000] 666:30 INTERNET_STATUS_SENDING_REQUEST [1.000] 666:31 INTERNET_STATUS_REQUEST_SENT [1.000] 	Bytes sent: 16384 [1.000] 666:30 INTERNET_STATUS_SENDING_REQUEST [1.000] 666:31 INTERNET_STATUS_REQUEST_SENT [1.000] 	Bytes sent: 16384 [1.000] 666:30 INTERNET_STATUS_SENDING_REQUEST [1.000] 666:31 INTERNET_STATUS_REQUEST_SENT [1.000] 	Bytes sent: 11286 [1.000] 666:100 INTERNET_STATUS_REQUEST_COMPLETE [1.000] 	dwResult: 1 [1.000] 	dwError: 0 [1.109] Waitforsig OK [1.109] HttpEndRequest [1.109] Waitforsig waiting for 666:100 [1.109] 666:40 INTERNET_STATUS_RECEIVING_RESPONSE [1.109] 666:41 INTERNET_STATUS_RESPONSE_RECEIVED [1.109] 666:100 INTERNET_STATUS_REQUEST_COMPLETE [1.109] 	dwResult: 1 [1.109] 	dwError: 0 [1.203] Waitforsig OK [1.203] Finished     				  			

  				  					OK. i added the following code and now the program finishes as it should, seems like it must be a server side issue because the server reports error 10060 during transmission     	Code:  		DWORD dwFlags; 	DWORD dwBuffLen = sizeof(dwFlags); 	InternetQueryOption(hRequest, INTERNET_OPTION_SECURITY_FLAGS, (LPVOID)&dwFlags, &dwBuffLen); 	dwFlags |= SECURITY_FLAG_IGNORE_UNKNOWN_CA; 	InternetSetOption(hRequest, INTERNET_OPTION_SECURITY_FLAGS, &dwFlags, sizeof (dwFlags) ); 	 	// send a bogus request to trigger the retry 	TRACE("\n"); 	TTRACE("HttpSendRequestEx (BLUFF)\n"); 	BOOL bSend1 = HttpSendRequestEx(hRequest, NULL, NULL, 0, dwContext); 	WaitForSig(INTERNET_STATUS_REQUEST_COMPLETE, dwContext );  	TRACE("\n"); 	TTRACE("HttpEndRequest (BLUFF)\n"); 	BOOL bEnd1 = HttpEndRequest(hRequest, NULL, 0, dwContext); 	WaitForSig(INTERNET_STATUS_REQUEST_COMPLETE, dwContext); 	Check(GetLastError() == 12032); // we must have force retry  	// send the actual request DO_IT_AGAIN:   output    	Code:  	[0.000] InternetOpen  [0.063] InternetConnect [0.063] 666:60 INTERNET_STATUS_HANDLE_CREATED [0.063] 	dwResult: 13369352 [0.063] 	dwError: 0 [0.063] Waitforsig waiting for 666:60 [0.063] Waitforsig OK  [0.063] HttpOpenRequest [0.078] 666:60 INTERNET_STATUS_HANDLE_CREATED [0.078] 	dwResult: 13369356 [0.078] 	dwError: 0 [0.078] Waitforsig waiting for 666:60 [0.078] Waitforsig OK  [0.078] Open File (347341 bytes)  [0.078] HttpSendRequestEx (BLUFF) [0.125] Waitforsig waiting for 666:100 [0.219] 666:10 INTERNET_STATUS_RESOLVING_NAME [0.219] 	Host Name: 192.168.21.1 [0.219] 666:11 INTERNET_STATUS_NAME_RESOLVED [0.219] 	Host Name: 192.168.21.1 [0.219] 666:20 INTERNET_STATUS_CONNECTING_TO_SERVER [0.219] 	SOCKADDR.sa_data: 2.168.21.1 [0.219] 	SOCKADDR.sa_family: 14641 [0.266] 666:21 INTERNET_STATUS_CONNECTED_TO_SERVER [0.266] 	SOCKADDR.sa_data: 2.168.21.1 [0.266] 	SOCKADDR.sa_family: 14641 [0.547] 666:30 INTERNET_STATUS_SENDING_REQUEST [0.547] 666:31 INTERNET_STATUS_REQUEST_SENT [0.547] 	Bytes sent: 185 [0.547] 666:100 INTERNET_STATUS_REQUEST_COMPLETE [0.547] 	dwResult: 1 [0.547] 	dwError: 0 [0.594] Waitforsig OK  [0.594] HttpEndRequest (BLUFF) [0.594] Waitforsig waiting for 666:100 [0.594] 666:40 INTERNET_STATUS_RECEIVING_RESPONSE [0.703] 666:41 INTERNET_STATUS_RESPONSE_RECEIVED [0.719] 666:100 INTERNET_STATUS_REQUEST_COMPLETE [0.719] 	dwResult: 0 [0.719] 	dwError: 12032 [0.797] Waitforsig OK  [0.797] HttpSendRequestEx [0.797] Waitforsig waiting for 666:100 [0.797] 666:40 INTERNET_STATUS_RECEIVING_RESPONSE [0.797] 666:41 INTERNET_STATUS_RESPONSE_RECEIVED [0.797] 666:30 INTERNET_STATUS_SENDING_REQUEST [0.797] 666:31 INTERNET_STATUS_REQUEST_SENT [0.797] 	Bytes sent: 263 [0.797] 666:100 INTERNET_STATUS_REQUEST_COMPLETE [0.797] 	dwResult: 1 [0.797] 	dwError: 0 [0.906] Waitforsig OK  [0.906] HttpEndRequest [0.906] Waitforsig waiting for 666:100 [0.906] 666:40 INTERNET_STATUS_RECEIVING_RESPONSE [0.906] 666:41 INTERNET_STATUS_RESPONSE_RECEIVED [0.906] 666:100 INTERNET_STATUS_REQUEST_COMPLETE [0.906] 	dwResult: 0 [0.906] 	dwError: 12032 [1.000] Waitforsig OK [1.000] == DO_IT_AGAIN ==  [1.000] HttpSendRequestEx [1.000] Waitforsig waiting for 666:100 [1.000] 666:40 INTERNET_STATUS_RECEIVING_RESPONSE [1.000] 666:41 INTERNET_STATUS_RESPONSE_RECEIVED [1.000] 666:30 INTERNET_STATUS_SENDING_REQUEST [1.000] 666:31 INTERNET_STATUS_REQUEST_SENT [1.000] 	Bytes sent: 404 [1.000] 666:30 INTERNET_STATUS_SENDING_REQUEST [1.000] 666:31 INTERNET_STATUS_REQUEST_SENT [1.000] 	Bytes sent: 16384 [1.000] 666:30 INTERNET_STATUS_SENDING_REQUEST [1.000] 666:31 INTERNET_STATUS_REQUEST_SENT [1.000] 	Bytes sent: 16384 [1.000] 666:30 INTERNET_STATUS_SENDING_REQUEST [1.000] 666:31 INTERNET_STATUS_REQUEST_SENT [1.000] 	Bytes sent: 16384 [1.000] 666:30 INTERNET_STATUS_SENDING_REQUEST [1.000] 666:31 INTERNET_STATUS_REQUEST_SENT [1.000] 	Bytes sent: 16384 [1.000] 666:30 INTERNET_STATUS_SENDING_REQUEST [1.000] 666:31 INTERNET_STATUS_REQUEST_SENT [1.000] 	Bytes sent: 16384 [1.000] 666:30 INTERNET_STATUS_SENDING_REQUEST [1.016] 666:31 INTERNET_STATUS_REQUEST_SENT [1.016] 	Bytes sent: 16384 [1.016] 666:30 INTERNET_STATUS_SENDING_REQUEST [1.016] 666:31 INTERNET_STATUS_REQUEST_SENT [1.016] 	Bytes sent: 16384 [1.016] 666:30 INTERNET_STATUS_SENDING_REQUEST [1.110] 666:31 INTERNET_STATUS_REQUEST_SENT [1.110] 	Bytes sent: 16384 [1.125] 666:30 INTERNET_STATUS_SENDING_REQUEST [1.125] 666:31 INTERNET_STATUS_REQUEST_SENT [1.125] 	Bytes sent: 16384 [1.125] 666:30 INTERNET_STATUS_SENDING_REQUEST [1.125] 666:31 INTERNET_STATUS_REQUEST_SENT [1.125] 	Bytes sent: 16384 [1.125] 666:30 INTERNET_STATUS_SENDING_REQUEST [1.125] 666:31 INTERNET_STATUS_REQUEST_SENT [1.125] 	Bytes sent: 16384 [1.125] 666:30 INTERNET_STATUS_SENDING_REQUEST [1.125] 666:31 INTERNET_STATUS_REQUEST_SENT [1.125] 	Bytes sent: 16384 [1.125] 666:30 INTERNET_STATUS_SENDING_REQUEST [1.125] 666:31 INTERNET_STATUS_REQUEST_SENT [1.125] 	Bytes sent: 16384 [1.125] 666:30 INTERNET_STATUS_SENDING_REQUEST [1.125] 666:31 INTERNET_STATUS_REQUEST_SENT [1.125] 	Bytes sent: 16384 [1.125] 666:30 INTERNET_STATUS_SENDING_REQUEST [1.125] 666:31 INTERNET_STATUS_REQUEST_SENT [1.125] 	Bytes sent: 16384 [1.125] 666:30 INTERNET_STATUS_SENDING_REQUEST [1.125] 666:31 INTERNET_STATUS_REQUEST_SENT [1.125] 	Bytes sent: 16384 [1.125] 666:30 INTERNET_STATUS_SENDING_REQUEST [1.125] 666:31 INTERNET_STATUS_REQUEST_SENT [1.125] 	Bytes sent: 16384 [1.125] 666:30 INTERNET_STATUS_SENDING_REQUEST [1.141] 666:31 INTERNET_STATUS_REQUEST_SENT [1.141] 	Bytes sent: 16384 [1.141] 666:30 INTERNET_STATUS_SENDING_REQUEST [1.141] 666:31 INTERNET_STATUS_REQUEST_SENT [1.141] 	Bytes sent: 16384 [1.141] 666:30 INTERNET_STATUS_SENDING_REQUEST [1.141] 666:31 INTERNET_STATUS_REQUEST_SENT [1.141] 	Bytes sent: 16384 [1.141] 666:30 INTERNET_STATUS_SENDING_REQUEST [1.141] 666:31 INTERNET_STATUS_REQUEST_SENT [1.141] 	Bytes sent: 16384 [1.141] 666:30 INTERNET_STATUS_SENDING_REQUEST [1.141] 666:31 INTERNET_STATUS_REQUEST_SENT [1.141] 	Bytes sent: 3739 [1.141] 666:100 INTERNET_STATUS_REQUEST_COMPLETE [1.141] 	dwResult: 1 [1.141] 	dwError: 0 [1.203] Waitforsig OK  [1.203] HttpEndRequest [1.203] Waitforsig waiting for 666:100 [1.203] 666:40 INTERNET_STATUS_RECEIVING_RESPONSE [31.188] 666:41 INTERNET_STATUS_RESPONSE_RECEIVED [31.188] 666:100 INTERNET_STATUS_REQUEST_COMPLETE [31.188] 	dwResult: 1 [31.188] 	dwError: 0 [31.281] Waitforsig OK [31.281] Finished


Related Links

connect() problem
Create a virtual LANs for file copying
How to use the same port between two process to send datagrams
Sending and recieving
Getting information from a site(C++)
Winsock problems on IP.
[RESOLVED] Broadcast UDP question
bluetooth PIN dialog
AMD Show
Network Q&A
Program solution
Remoting
Set Cookie
Page Source
How to get IP which is assigned by ISP
PIM Implementation