Quote Originally Posted by Vanaj View Post
If this function fails you do show a messagebox alerting the user to an error...but do not show/log the error...

Try using GetLastError() in the failure logic then insert that error into a string and displaying the exact error and not just a general error...just like you did for InternetConnect()
You can also lookup the function InternetGetLastResponseInfo() as this might be of some help in debugging the actual error.



Code:
if(!(InternetWriteFile(hRequest, pBuffer, dwBytesRead, &dwBytesWritten)))
{
   MessageBox( 0, L"Error Write File", L"HTTP", MB_OK );
   break;
}
Hi,
InternetWriteFile not shows any error.
I checked that by GetLastError() and not shows any error.
Regards,