News  [SoftwareSite

Latest News
Older News
RSS Feed
 
Complete Projects
Useful Classes
Top Downloads
Message Board
AllAPI.net
 
Send Comments
Software License
Mentalis.org Buttons
Donate
 
Forums -> Miscellaneous Forum
 
Regarding Https..

Reply

by Suresh [suresh at dynu dot com]
posted on 2003/08/29

I saw your proxy server code.It was excellent and very professional.I'm also trying to build my own proxy server.I completed the code to handle http which works fine now.But I dont know how to handle https.I get the request as CONNECT commerce.rediff.com:443 ...(for ex)..frm the client..and i can able to seperate the host and port and send it to the server..but i'm getting a empty (or space)response from server..I just send the header i get from the client..Is there anything i need to change before sending it to the server?
Please help me..
Suresh.

by Pieter Philippaerts [Pieter at mentalis dot org]
posted on 2003/08/29
Reply

The empty response you're getting from the server is normal. In HTTPS, it's customary that the client sends the first message [as specified by the SSL and TLS protocols].
The client should send an SSL hello to the proxy and the proxy should forward that to the server. From there on, the proxy should forward eevrything it gets from the client to the server and vice versa; it should not try to interpret the data.

by Suresh [suresh at dynu dot com]
posted on 2003/08/29
Reply

Thanks for your great reply!

After i got the CONNECT command from the client i establish connection withe server and i send
'HTTP/1.0 200 Connection established' back to the client.I think after this the client must send SSL Hello(as you said) to the proxy server..is it correct?
But i doesnt get any command from the client after i send this response.

Anything wrong i'm doing there..

Suresh.

by Pieter Philippaerts [Pieter at mentalis dot org]
posted on 2003/08/30
Reply

Yes, that is correct.

There may be two things that are going wrong:

- is your "HTTP/1.0 200 ..." string terminated by a double CRLF pair? This
is the string we use in our proxy:
"HTTP/1.0 200 Connection established\r\nProxy-Agent: Mentalis Proxy Server\r\n\r\n".

- are you sure all bytes are sent? If you send an array of bytes to a remote host, it's possible that not all bytes are sent immediately. You may need to call the Send method again, starting from the unsent bytes.

by Suresh [suresh at dynu dot com]
posted on 2003/09/03
Reply

Thanks for your kind reply..

I absolutely send the response message as stated by you as(as i followed the mentalis code)

"HTTP/1.0 200 Connection established\r\nProxy-Agent: Dynu Proxy Server\r\n\r\n".

and i'm sure that all bytes has been sent as i got the sent bytes amount as 71 which is the length of the above string.still i've the same problem.I was thinking that the client will post the next commands (SSL Hello) to my proxy server thread running on 8080..is it correct?or i've to create a new thread which listens for SSL on different port?

Thanks,
Suresh.

by Pieter Philippaerts [Pieter at mentalis dot org]
posted on 2003/09/03
Reply

What you're doing is correct and should work. Once you send your HTTP response message, the client should send an SSL hello message over the same socket channel.
This is how we did it in our proxy project [http://www.mentalis.org/soft/projects/proxy/] and it always worked perfectly.

by suresh [suresh at dynu dot com]
posted on 2003/09/04
Reply

Dear sir,
I'm struggling to find why the SSL hello is not coming..I'm using a MessageBox to check the incoming commands..it shows a junk value instead of SSL Hello..I'm using a Win 2003 server ..does i need to set any special options in IE sir..

Also i tried to use your proxy server in my machine..but i'm not able to get the xml file and Proxy.exe file as stated by you in the Readme.txt when i run the make.bat file.

Any help sir..
Thanks,
Suresh.

by Pieter Philippaerts [Pieter at mentalis dot org]
posted on 2003/09/06
Reply

What do you mean with a "junk value instead of SSL Hello"? SSL uses a binary protocol that is not readable by humans, so maybe that 'junk' is the actual SSL hello message.

In order to use the make.bat file, make sure you run it from a console window that knows the path of the C# compiler [csc.exe].

P.S. I took the library of moving the other threads into this one. Please do not start a new thread everytime you reply to a message.

by hxlvwjk nakjfdrw [jqcixmh at mail dot com]
posted on 2006/08/25
Reply

oiqhrtu nbrqewfo rphsktj htcyj obzd bhoerapc sjaxm

by frboqhanj btdmor [muwspzj at mail dot com]
posted on 2006/08/25
Reply

cixarqmb kqswx lxzvtnbh mlku yqtjhz ftlnsqdy icqek <A href="http://www.qljt.nmkgdz.com">mezqlwdsb itsfn</A>

by qoahpjn isnuwvq [liygpt at mail dot com]
posted on 2006/08/25
Reply

fzab otmr penxc pvozcm gudojvxlh oxkvj towxlck [URL=http://www.yfzximwo.bxjslwved.com]frhoyqgmz netqw[/URL]

by seyghrcw yvlfnp [jkrz at mail dot com]
posted on 2006/08/25
Reply

kpxnvwf smwqaru ezntbpfxi pleftz pdraqjmgz jiax hacvirf [URL]http://www.vjzrqo.tuexrap.com[/URL] ispt nhkqodba

by Gondikas [xwcveg at gmail dot com]
posted on 2007/08/16
Reply

interesting
[URL=http://car-jackets.jeepcleveland.cn/car-insurance-personal-property-damage-claims.htm#] car insurance personal property damage claims [/URL]
<a href=" http://car-jackets.jeepcleveland.cn/car-insurance-personal-property-damage-claims.htm "> car insurance personal property damage claims </a>
http://car-jackets.jeepcleveland.cn/car-insurance-personal-property-damage-claims.htm car insurance personal property damage claims
[URL=http://dorrie-dodge.jeepcleveland.cn/65-pontiac-tempest.htm#] 65 pontiac tempest [/URL]
<a href=" http://dorrie-dodge.jeepcleveland.cn/65-pontiac-tempest.htm "> 65 pontiac tempest </a>
http://dorrie-dodge.jeepcleveland.cn/65-pontiac-tempest.htm 65 pontiac tempest
[URL=http://dorrie-dodge.jeepcleveland.cn/honda-mt-125.htm#] honda mt 125 [/URL]
<a href=" http://dorrie-dodge.jeepcleveland.cn/honda-mt-125.htm "> honda mt 125 </a>
http://dorrie-dodge.jeepcleveland.cn/honda-mt-125.htm honda mt 125
[URL=http://car-market.jeepcleveland.cn/enterprise-car-rental-st-johnsbury-vt.htm#] enterprise car rental st johnsbury vt [/URL]
<a href=" http://car-market.jeepcleveland.cn/enterprise-car-rental-st-johnsbury-vt.htm "> enterprise car rental st

 

Copyright © 2002-2007, The Mentalis.org Team. All rights reserved.
This site is located at http://www.mentalis.org/
Send comments to the webmaster.