467,207 Members | 1,309 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,207 developers. It's quick & easy.

HTTP Gateway examples?

First of all.....Happy New Year to you! I hope you have a successful and
joyous new year.

As for the HTTP Gateway examples.... I'm looking for some sample code that
may illustrate techniques useful in coding an HTTP Gateway.

I want to be able to connect 2 PCs (both behind firewalls) via an HTTP
connection. FTP is also acceptable for this project, but HTTP is best.

Have you seen any code or articles that would be helpful in this respect?

Thank you for your time.

Jim Hubbard
Jul 21 '05 #1
  • viewed: 1535
Share:
7 Replies
Jim Hubbard wrote:
First of all.....Happy New Year to you! I hope you have a successful
and joyous new year.

As for the HTTP Gateway examples.... I'm looking for some sample
code that may illustrate techniques useful in coding an HTTP Gateway.
What is a HTTP gateway? Gateways are ISO layer 3 devices, way below HTTP's
location in the standard network stack.
I want to be able to connect 2 PCs (both behind firewalls) via an HTTP
connection. FTP is also acceptable for this project, but HTTP is
best.


Regardless of whether you run HTTP or FTP, if the communication is supposed
to be bidirectional, you'll need to run both server and client software on
both boxes. Since there's no native FTP support in .NET before version 2.0,
using HTTP is probably easier to implement (System.Net.WebClient or
System.NetWebRequest) and certainly a lot more firewall friendly -- I assume
port 80 is open on both firewalls.

Cheers,

--
Joerg Jooss
www.joergjooss.de
ne**@joergjooss.de
Jul 21 '05 #2
Jim,

This is stuff I am absolute not interested in at the moment, however
searching for the right page for somebody else I saw this.

http://msdn.microsoft.com/msdnmag/is...s/default.aspx

Maybe you can need it (although it is aspnet and I doubt it, however
something is in my opinion always better than nothing)

Cor
"Jim Hubbard" <re***@groups.please>
First of all.....Happy New Year to you! I hope you have a successful and
joyous new year.

As for the HTTP Gateway examples.... I'm looking for some sample code
that may illustrate techniques useful in coding an HTTP Gateway.

I want to be able to connect 2 PCs (both behind firewalls) via an HTTP
connection. FTP is also acceptable for this project, but HTTP is best.

Have you seen any code or articles that would be helpful in this respect?

Thank you for your time.

Jim Hubbard

Jul 21 '05 #3
If you mean HTTP Server app , look at Webster example on
http://www.microsoft.com/msj/archive/S25F.aspx

Arkady

"Jim Hubbard" <re***@groups.please> wrote in message
news:ou********************@giganews.com...
First of all.....Happy New Year to you! I hope you have a successful and
joyous new year.

As for the HTTP Gateway examples.... I'm looking for some sample code that may illustrate techniques useful in coding an HTTP Gateway.

I want to be able to connect 2 PCs (both behind firewalls) via an HTTP
connection. FTP is also acceptable for this project, but HTTP is best.

Have you seen any code or articles that would be helpful in this respect?

Thank you for your time.

Jim Hubbard

Jul 21 '05 #4
You are right....I should have called it an HTTP-Tunnel to be more precise.
"Joerg Jooss" <jo*********@gmx.net> wrote in message
news:e5**************@TK2MSFTNGP15.phx.gbl...
Jim Hubbard wrote:
First of all.....Happy New Year to you! I hope you have a successful
and joyous new year.

As for the HTTP Gateway examples.... I'm looking for some sample
code that may illustrate techniques useful in coding an HTTP Gateway.


What is a HTTP gateway? Gateways are ISO layer 3 devices, way below HTTP's
location in the standard network stack.
I want to be able to connect 2 PCs (both behind firewalls) via an HTTP
connection. FTP is also acceptable for this project, but HTTP is
best.


Regardless of whether you run HTTP or FTP, if the communication is
supposed to be bidirectional, you'll need to run both server and client
software on both boxes. Since there's no native FTP support in .NET before
version 2.0, using HTTP is probably easier to implement
(System.Net.WebClient or System.NetWebRequest) and certainly a lot more
firewall friendly -- I assume port 80 is open on both firewalls.

Cheers,

--
Joerg Jooss
www.joergjooss.de
ne**@joergjooss.de

Jul 21 '05 #5
Jim Hubbard wrote:
You are right....I should have called it an HTTP-Tunnel to be more
precise.


So at the end of the day, it's a normal HTTP connection used to transport
Yet Another Protocol. This changes little -- you still need a web server and
a web client ;-)

Cheers,

--
Joerg Jooss
www.joergjooss.de
ne**@joergjooss.de
Jul 21 '05 #6
I want to duplicate the activeX component found at
http://www.http-tunnel.com/html/solu...el/activex.asp in .Net
and the associated HTTP-Tunnel Server (also found on the same site).

It would be used to get around firewalls for a remote help solution to be
provided freely to my customers.

Thanks for sticking with me......

Jim Hubbard
"Joerg Jooss" <jo*********@gmx.net> wrote in message
news:OZ**************@TK2MSFTNGP15.phx.gbl...
Jim Hubbard wrote:
You are right....I should have called it an HTTP-Tunnel to be more
precise.


So at the end of the day, it's a normal HTTP connection used to transport
Yet Another Protocol. This changes little -- you still need a web server
and a web client ;-)

Cheers,

--
Joerg Jooss
www.joergjooss.de
ne**@joergjooss.de

Jul 21 '05 #7
Jim Hubbard wrote:
I want to duplicate the activeX component found at
http://www.http-tunnel.com/html/solu...el/activex.asp in
.Net and the associated HTTP-Tunnel Server (also found on the same
site).
It would be used to get around firewalls for a remote help solution
to be provided freely to my customers.


Note that "getting around the firewall" is highly misleading. You
(hopefully) don't get around the firewall, you just sneak your stuff through
port 80, which is usually open to allow for HTTP traffic.

If you want to implement a true general HTTP tunneling solution, you
probably want to use a more powerful network API than what .NET currently
offers, like Indy (http://www.indyproject.org/). And if you need to hook
into WinSock like HTTP Tunnel does, I guess you need to deal with unmanaged
code anyway.

Cheers,

--
Joerg Jooss
www.joergjooss.de
ne**@joergjooss.de
Jul 21 '05 #8

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by roger beniot | last post: by
3 posts views Thread by ashesdesign | last post: by
7 posts views Thread by Jim Hubbard | last post: by
14 posts views Thread by jojoba@gmail.com | last post: by
reply views Thread by Astan Chee | last post: by
18 posts views Thread by Grant Edwards | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.