Boost [Asio] Problem with POST Request and async_read
Hello. I've wrote a SSL Proxy and have a big problem. I use a HTTP Client in bei Proxy to communicate with my HTTP Server. HTTP Client and HTTP Server are localhost. A SSL Browser should call my local SSL Proxy and internal a HTTP Client communicate with my HTTP Server. If the SSL Brower sends a POST request to my proxy, I have a problem. This is my code: async_write(m_HTTPSocket, buffer(m_sSSLRequestBuffer), transfer_at_least(1), boost::bind(&CSession::HandleHTTPWriteRequest, this, placeholders::error)); void CSession::HandleHTTPWriteRequest(const error_code& error) { if (!error) { async_read(m_HTTPSocket, buffer(m_HTTPResponse, MAX_HTTPRESPONSE_BUFFER_LENGTH), transfer_at_least(1), boost::bind(&CSession::HandleHTTPReadResponse, this, placeholders::error, placeholders::bytes_transferred)); } else if(error != error::eof) { SendErrorToSSL(error); } } void CSession::HandleHTTPReadResponse(const error_code& error, size_t iTransferredBytes) { if(!error) { The error is boost::asio::error::connection_aborted (10053 (WSAECONNABORTED)). If I don't use my SSL Proxy the HTTP Browser works correct. I use Visual Studio 2005 with Boost 1.36 Thanks for help. -- Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger
participants (1)
-
anti00Zero