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

HTTP Debugging Proxy

Xavier Defrang has written an HTTP Debugging Proxy.
This message is basically for him - since he says on his website that
he inhabits this newsgroup.

I downloaded this and ran it , with the following result :

Traceback (most recent call last):
File "D:\Python Projects\cgiproxy\http_debugging_proxy.py", line 34,
in ?
signal.signal(signal.SIGALRM, SIGALRM_handler)
AttributeError: 'module' object has no attribute 'SIGALRM'

Is this my fault or yours ? :-)
I am in a restricted internet environment and have to use an external
CGI proxy to get unrestricted access. I would like to write a little
server that will run on my machine (client) and transparently modify
standard http requests to go via the CGI proxy....

My knowledge of http and tcp/ip protocols is little but growing... so
this should be an interesting exercise - if I can get it off the
ground at all.

My other problem is that my restricted internet access is already via
proxy - so I need to get the server to use that proxy and my browser
via my little serevr..... *sigh* (so merely changing the settings in
IE isn't enough - because then urllib2 and it's ilk won't correctly
pick up the squid proxy settings to make valid conenctions).

Regards,

Fuzzy

http://www.voidpsace.org.uk/atlantib...thonutils.html
Jul 18 '05 #1
2 5581
[Fuzzyman]
Xavier Defrang has written an HTTP Debugging Proxy.
This message is basically for him - since he says on his website that
he inhabits this newsgroup.

I downloaded this and ran it , with the following result :

Traceback (most recent call last):
File "D:\Python Projects\cgiproxy\http_debugging_proxy.py", line 34,
in ?
signal.signal(signal.SIGALRM, SIGALRM_handler)
AttributeError: 'module' object has no attribute 'SIGALRM'

Is this my fault or yours ? :-)


Yours, for trying to use Unix-only facilities on Windows :-)

The documentation page for the signal module is not very clear about
this point, probably because there are plenty of exclusions on
different platforms, and documenting them all explicitly would
over-complicate the documentation.

There is a hint on the docs for the signal.alarm() function, which
says "Availability: Unix". IIRC, the code signal.alarm(func) is just a
wrapper around the code signal.signal(signal.SIGALRM, func).

http://docs.python.org/lib/module-signal.html

Perhaps the platform independent "Timer" object can give you what you
need?

http://docs.python.org/lib/timer-objects.html

regards,

--
alan kennedy
------------------------------------------------------
check http headers here: http://xhaus.com/headers
email alan: http://xhaus.com/contact/alan
Jul 18 '05 #2
> Yours, for trying to use Unix-only facilities on Windows :-)
There is a proxy called 'TCPWatch' written in python that works under
windows and is useful for debugging.
Jul 18 '05 #3

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

Similar topics

1
by: Timothy Alvis | last post by:
Unfortunately due to a mishap with Visual Sourcesafe, I'm having to recreate a solution file from scratch for a software package I "inherited" when starting at this position. I am wanting to be...
6
by: Guest | last post by:
Hi, I unerstand that if you choose IIS to host your .Net Remotingcomponents with HTTP channel and SOAP formatter, you get thebuilt-in security and configuraion features of IIS. Also we canexpose it...
3
by: bd-chan | last post by:
I'm trying to log in to a secured web site automatically using c#. To do this I have go through a proxy server, and use SSL, and log in to the secure site with another user name and password...
0
by: George | last post by:
Hello, I'm running an ASPX application "WebApplication1" which consumes a web service (service1.asmx) hosted on a machine with IP (128.1.7.x) . The web service is located in the intranet. The...
4
by: Sebastián::PJ | last post by:
I'm trying to reach a web service outside my organization and this is what I get. Where do I have to write the Proxy credentials? TIA -- Check my blog out at: http://sgomez.blogspot.com
8
by: Tim Reynolds | last post by:
Our .Net application calls a web method of aplpication 2 that resides on their Apache server. When I as a developer C#, Studios 2003, make the call to their web method from my desktop, I receive no...
2
by: Fredrik G | last post by:
Whenever i hit F5, my project builds, but then i get an error "The operation could not be completed" Then i have to launch task manager, and end the "myproject.vshost.exe" process manually. Now,...
0
by: Dan Lenski | last post by:
Hi all, I've recently written an HTTP proxy server for the Motorola E815 cell phone, based on Suzuki Hisao's "Tiny HTTP Proxy" (http:// www.okisoft.co.jp/esc/python/proxy/). This cell phone...
0
by: swigerb | last post by:
I have created an HTTP Module and an HTTP Handler. The HTTP Module is responsible for encrypting and decrypting all querystring parameters, which works fine. The HTTP Handler is to act as a proxy...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: 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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.