473,788 Members | 3,068 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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\cgipro xy\http_debuggi ng_proxy.py", line 34,
in ?
signal.signal(s ignal.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 5609
[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\cgipro xy\http_debuggi ng_proxy.py", line 34,
in ?
signal.signal(s ignal.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 "Availabili ty: Unix". IIRC, the code signal.alarm(fu nc) is just a
wrapper around the code signal.signal(s ignal.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
1483
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 able to develop both the program that calls the web service, and the web service itself in the same environment. This was working before this mishap, but for the life of me I can't get it to work now. Let's say that the webservice is named:...
6
2419
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 to use for the web services clients. But using HTTPwith SOAP has got the least performance amoung all others (exTCP with Binary etc). The question is what are the advantages of using http with SOAPover http with Binary formatter? What are the...
3
2289
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 (different from the proxy user name and password). Now, I can get through the proxy by setting the correct credentials on the WebProxy. I can get through SSL by setting up a dummy certificate policy class that always returns true. If I go to a...
0
2643
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 web methods can be invoked successfully if "WebApplication1" is located in machines with the same subnet (128.1.7.x). However, it fails if "WebApplication1" is hosted on
4
24594
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
14103
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 exceptions - completes fine. Their web service url was added as a web reference to our project with no problem. The following was generated as part of the proxy class: /// <remarks/> public DueDateAvailabilityResponse...
2
2619
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, the next time i build it, it will start. But next time i start debugging, i have to do the same procedure again. It was working fine earlier, but suddenly this just started happening, and I don't understand why. It's very annoying to do this...
0
1924
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 allows free Internet access if you change the default proxy server, but it has a severely buggy HTTP client implementation which will freeze if there's no Content-Length header. Basically, it's impossible to read normal web pages without some...
0
1061
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 for calls to a specified CGI executable. Issue: As soon as I configure the Handler within the Web.Config file to run and begin debugging the Handler and Module...then access a "test.htm" page with an anchor tag containing a url with a...
0
9655
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9498
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10363
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8993
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7517
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6749
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5398
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4069
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.