Petar Popara
2006-01-17 15:12:18 UTC
I'm doing this:
InternetOpen()
InternetConnect()
HttpOpenRequest()
HttpAddRequestHeaders()
HttpSendRequestEx()
InternetWriteFile()
HttpEndRequest()
InternetReadFile()
HttpSendRequestEx()
InternetWriteFile()
HttpEndRequest()
InternetReadFile()
HttpSendRequestEx()
InternetWriteFile()
HttpEndRequest()
InternetReadFile()
HttpSendRequestEx()
InternetWriteFile()
HttpEndRequest()
InternetReadFile()
Well, the problem is that HTTP server receives "content-length" allways the
same (during each HTTP request), although I'm sending different data! I am
setting content length like this:
INTERNET_BUFFERS BufferIn;
memset(&BufferIn, 0, sizeof( INTERNET_BUFFERS ));
BufferIn.dwStructSize = sizeof( INTERNET_BUFFERS );
BufferIn.dwBufferTotal = static_cast<DWORD>(a_request.GetLength());
HttpSendRequestEx( m_hHttp, &BufferIn, NULL, 0, 0 );
Is this a bug?
InternetOpen()
InternetConnect()
HttpOpenRequest()
HttpAddRequestHeaders()
HttpSendRequestEx()
InternetWriteFile()
HttpEndRequest()
InternetReadFile()
HttpSendRequestEx()
InternetWriteFile()
HttpEndRequest()
InternetReadFile()
HttpSendRequestEx()
InternetWriteFile()
HttpEndRequest()
InternetReadFile()
HttpSendRequestEx()
InternetWriteFile()
HttpEndRequest()
InternetReadFile()
Well, the problem is that HTTP server receives "content-length" allways the
same (during each HTTP request), although I'm sending different data! I am
setting content length like this:
INTERNET_BUFFERS BufferIn;
memset(&BufferIn, 0, sizeof( INTERNET_BUFFERS ));
BufferIn.dwStructSize = sizeof( INTERNET_BUFFERS );
BufferIn.dwBufferTotal = static_cast<DWORD>(a_request.GetLength());
HttpSendRequestEx( m_hHttp, &BufferIn, NULL, 0, 0 );
Is this a bug?