question: python and UDP

Peter Hansen peter at engcorp.com
Sun Mar 24 22:43:57 EST 2002


ricky wrote:
> 
> I am trying to write a python program to connect to a proxy server which
> takes the following header:
> however, the proxy server doesn't seem to understand the header i sent to
> it.
[...]
> My question is how do i format the header so that proxy server would
> understand the information I send to it.
[...]

Are you looking for the 'struct' module?  That should be enough to 
produce the header format you need.

-Peter



More information about the Python-list mailing list