|
Boost Users : |
Subject: Re: [Boost-users] boost::asio SSL connection thru proxy server
From: Sam Miller (samjmill_at_[hidden])
Date: 2010-08-30 15:42:48
Akilesh,
Your question is not clear to me, what exactly does not work when using
your proxy? Does the SSL handshake fail?
Sam
|------------>
| From: |
|------------>
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|"Kumar, Akhilesh" <Akhilesh.Kumar_at_[hidden]> |
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| To: |
|------------>
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|"boost-users_at_[hidden]" <boost-users_at_[hidden]> |
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| Date: |
|------------>
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|08/30/2010 02:34 PM |
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| Subject: |
|------------>
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|Re: [Boost-users] boost::asio SSL connection thru proxy server |
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| Sent by: |
|------------>
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|boost-users-bounces_at_[hidden] |
>--------------------------------------------------------------------------------------------------------------------------------------------------|
Hi All,
Considering that nobody replied my question I am wondering if anybody who
has knowledge of this kind of problem has seen my previous
message/question. I really need help on this issue if anybody has any
thought on this pls. reply.
Thanks,
Akhilesh Kumar
From: Kumar, Akhilesh
Sent: Monday, August 23, 2010 5:10 PM
To: 'boost-users_at_[hidden]'
Subject: boost::asio SSL connection thru proxy server
Hi,
I am writing a boost socket client using boost::asio to do secure HTTP
(HTTPS) communication. I Implemented my client based on the code sample
based on (
http://www.boost.org/doc/libs/1_39_0/doc/html/boost_asio/example/ssl/client.cpp
) with little changes as I am using sync socket. My client woks fine, when
I am connecting to server directly, but I am not sure what changes I need
to make when my communication going thru proxy.
The unsecure connection(HTTP) work fine thru proxy, and here is what I do
for unsecure connection,
1. Initialize boost socket(IO service and other stuff).
2. Resolve and Connect to Proxy server.
3. Start writing to actual server(HTTP send request).
4. Start uploading/downloading.
5. Close Socket.
But I canât use this above procedure for (SSL) secure connection as I need
to do handshaking with the server before I can write anything if my
understanding is correct.
Can somebody give me some pointer or code sample or step I need to do when
I am doing secure connection thru proxy server.
Just to clarify Microsoft WinInet does do (secure) HTTPS connection thru
same proxy fine. If providing my code sample I am using for SSL might help
understand the problem I can provide that.
Thanks in advance for any help.
Akhilesh Kumar
_______________________________________________
Boost-users mailing list
Boost-users_at_[hidden]
http://lists.boost.org/mailman/listinfo.cgi/boost-users
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net