473,322 Members | 1,496 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,322 software developers and data experts.

Simple localhost/proxy Server

I am trying to write a small server program that will work on a
*client* machine as a localhost server. It should then act as a proxy
server but modify URLs fetched through it - so that the fetches go via
an external CGI proxy.... Understand all that ? :-)

(I have a working CGI proxy that will remotely fetch web pages that I
can't access. The CGI proxy knows which page to fetch through the
PATH_INFO environment variable. What I'd like to do is write a little
server program that will sit on the client machine and modify URL
requests so that they go *via* the CGI proxy..).

So I have a few examples of proxy server programs - like tcpwatch and
the Tiny HTTP Debugging proxy - but I'm afraid my knowledge of http is
so little that I'm struggling to feel my way through. (Although I've
written a few CGIs..).

Can anyone point me in the right direction ?
A localhost server that I can get a response from with my browser -
and can see the requests coming in python - would be cool.

I run 'Tiny HTTP Proxy' by SUZUKI Hisao and it prints :
Any clients will be served...
Serving HTTP on 0.0.0.0 port 8000 ...

But can I get it to respond... can I jigger..........
I put 0.0.0.0 port 8000 as my proxy settings in IE, I
http://0.0.0.0:8000 or just plain 0.0.0.0 in the address bar...
nothing seems to make it respond...

Hmmm... out of my depth I'm afraid.
Regards,
Fuzzy

http://www.vooidspace.org.uk/atlanti...thonutils.html
Jul 18 '05 #1
2 8869

"Fuzzyman" <mi*****@foord.net> wrote in message
news:80**************************@posting.google.c om...
I am trying to write a small server program that will work on a
*client* machine as a localhost server. It should then act as a proxy
server but modify URLs fetched through it - so that the fetches go via
an external CGI proxy.... Understand all that ? :-)

(I have a working CGI proxy that will remotely fetch web pages that I
can't access. The CGI proxy knows which page to fetch through the
PATH_INFO environment variable. What I'd like to do is write a little
server program that will sit on the client machine and modify URL
requests so that they go *via* the CGI proxy..).

So I have a few examples of proxy server programs - like tcpwatch and
the Tiny HTTP Debugging proxy - but I'm afraid my knowledge of http is
so little that I'm struggling to feel my way through. (Although I've
written a few CGIs..).

Can anyone point me in the right direction ?
A localhost server that I can get a response from with my browser -
and can see the requests coming in python - would be cool.

I run 'Tiny HTTP Proxy' by SUZUKI Hisao and it prints :
Any clients will be served...
Serving HTTP on 0.0.0.0 port 8000 ...

But can I get it to respond... can I jigger..........
I put 0.0.0.0 port 8000 as my proxy settings in IE, I
http://0.0.0.0:8000 or just plain 0.0.0.0 in the address bar...
nothing seems to make it respond...

Hmmm... out of my depth I'm afraid.


You won't get much luck trying to send packets to 0.0.0.0. Perhaps if you
try 127.0.0.1 port 8000 as your proxy.
Jul 18 '05 #2
[snip..]
I run 'Tiny HTTP Proxy' by SUZUKI Hisao and it prints :
Any clients will be served...
Serving HTTP on 0.0.0.0 port 8000 ...

But can I get it to respond... can I jigger..........
I put 0.0.0.0 port 8000 as my proxy settings in IE, I
http://0.0.0.0:8000 or just plain 0.0.0.0 in the address bar...
nothing seems to make it respond...

Hmmm... out of my depth I'm afraid.


You won't get much luck trying to send packets to 0.0.0.0. Perhaps if you
try 127.0.0.1 port 8000 as your proxy.


Right.. I suspected as much - unfortunately the proxy defaults to
0.0.0.0 - and I can't see a way of changing it. It's buried in the
innards of BaseHTTPServer which is the base class for the Tiny Proxy.

Regards,

Fuzzy
Jul 18 '05 #3

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

Similar topics

3
by: Michael Adkins | last post by:
I have a new ASP project that I need to desperately test on my Windows 2000 machine before posing to my Hosting Company. I am having problems getting the ASP pages to run from LocalHost. I will...
0
by: Marc Bogaard | last post by:
Hello all! I am trying to develop some kind of proxy which filters the data the browser sents to a webserver (www.google.de, www.gmx.net, ...). For this reason I set a Proxy Connection in my IE...
5
by: Chris | last post by:
What is going on here... I have my site running locally on my machine, and when I don't have an internet connection (like when Im on the train) I get this error when I try to open an asp.net...
1
by: Lisa | last post by:
Hi, I've just had win xp pro and iis installed on my computer. My problem is I haven't been able to view any pages when I type http://localhost . All that comes up everytime is 'Page cannot be...
0
by: Sunny via .NET 247 | last post by:
i am also experiencing the similar problem.. "The Web server reported the following error when attempting tocreate or open the Web project located at the following...
6
by: Marc | last post by:
How could I directly trigger a very simple on localhost and a known port listening server from my internet browser client? Local host means the little server would be running on the client machine,...
4
by: merdaf | last post by:
I have built a proxy that run on port 8080. Indeed all the requests go through this proxy. However it failed to listen to requests that are being sent to the localhost (IE doen't send those...
20
by: =?Utf-8?B?cmtibmFpcg==?= | last post by:
I was executing the steps given in http://suppor.microsoft.com/kb/308359 for testing a sample web service application. However, the following line gives a compilation error: localhost.Service1...
10
by: Phillip Taylor | last post by:
Hi guys, I'm looking to develop a simple web service in VB.NET but I'm having some trivial issues. In Visual Studio I create a web services project and change the asmx.vb file to this: Imports...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.