Hi
   recv function is returning 0

Thanks, Raj Rajmohan SK

----- Original Message ----- From: "David Schwartz" <dav...@webmaster.com>
To: <openssl-users@openssl.org>
Sent: Thursday, August 05, 2010 6:05 AM
Subject: RE: Man in the middle proxy - Not working



Raj wrote:

Thanks for all the response
        1. I was able to do the handshaking successfully with the
browser.
On receiving the request from the browser I will send "HTTP OK "
response
back to the browser, I was able to do the handshaking and read the
actual
GET request.
        2. Then I create a new socket to establish the connection with
server. The connection was successful.
            Sends the request to the server
            Reads the request from the server

When I read the response from the server it always return empty.

What does that mean? Are you doing a blocking read or a non-blocking read?
If 'read' returns zero, then the connection was closed by the server. If
'read' returns a number less than zero, there is an error -- tell us what
error you are getting. If 'read' returns a number greater than zero, then
that is the first part of the response.

I
don't
know what went wrong here. I am reading the data from the socket using
'recv' function. Can anybody tell me what went wrong

So, what return value do you get from 'recv'?

DS

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org



______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to