473,402 Members | 2,055 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

SSL tunneling

Hello:

I'm developing a proxy server in VS 2005 C# and i got a problem with the
HTTPS tunneling protocol.

The secuence I follow is something like that:

1. I read the client request with a new Socket object.

2. If the request is like "CONNECT server:443 HTTP..." go on, else jump to
the HTTP proxy that works good.

3. I connect to the server requested by the client with a new SslStream
object.

4. If the connection is established without errors I send a "HTTP/1.0 200
Connection established..." to the client with the Socket object created on
step 1.

5. I read the next request from the client with the Socket created on step
1, and I receive an array of binary bytes (not text secuence).

6. I send this arrays to the server with the SslStream object created on
step 3.

7. I receive a text string from the server in HTM format with a "Bad
request" message or similar, depending on the server that I connect.
In the theory, after I send the "Connect established" to the client I must
send the data received from the client to the server and viceversa, until the
conection is broken.

Take note of that. If after the "Connection established" I send a "GET /..."
string to the server, it returns the web page that I'm asking for.

Is possible that I must convert the Socket object created on step 1 to a
SslStream?

Thanks for your comments and answers, and sorry for my bad English!

Un saludo!
--
Juan Segura
www.sd-a.com
ju**@sd-a.com
Apr 21 '06 #1
0 2341

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Marko | last post by:
Hello, Don't know if this is the right group... On our LAN, we have PhpMyAdmin 2.5.7-pl1 installed and PmaAbsoluteURI is set to http://192.168.1.200:81. When accessed from LAN, it works great....
5
by: Zach | last post by:
This is all on linux using jdk1.3. My application is written in AWT, no swing. The application requires running it on the host machine and tunneling the GUI back to a client. I've been doing...
22
by: Bloke | last post by:
Hi all. Some time ago (years) I had a script on Python 2.2 that would retieve a HTTPS web site. I used python22-win32-ssl.zip to handle the SSL aspect and it worked wonderfully. I am...
1
by: Jim Hubbard | last post by:
What is the best way to do tunneling via HTTP? I must use ports 80 and/or 443 (as I cannot control where the clients will be connecting to one another from). I want to implement a tunneling...
1
by: tvmaly | last post by:
My host does not provide a good web based management tool for the sql server database I am using. They queue imports and exports so it takes several hours before things are finished. They provide...
4
by: Paul Dodowa | last post by:
Is it possible (i.e. are there any modules out there) that allows one to do HTTP tunneling from PHP? (Google is only bringing up ASP.NET links) I'm working with PHP5 so ideally, the code is PHP5...
3
by: DrLex | last post by:
It's hard to find a suitable forum for this question, but I suppose this should be one of the more appropriate ones. Mind that this is probably a pretty 'advanced' question ;) I have this...
0
by: db2admin | last post by:
I am really new to the AIX, but i need to create a tunnelling in one of AIX m/c My problem : Machine 1 can connect to a server S1 with port x My client can only access Machine1 and can use...
2
by: mochinushi | last post by:
Im a newb C++ programmer trying to figure out what concepts and protocols i should be reading on... What im trying to accomplish is a "stealth" tunnel/forwarder from my computer at the dorm to a...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.