accesing socket at a lower level?

Fredrik Lundh effbot at telia.com
Fri May 19 13:00:56 EDT 2000


Z 3 Penguin wrote:
> >Hmm... What told you there were some extra bytes at the beginning?
>
> TCPDump Log.

have you tried using any of the standard networking
libraries under that tool?

try running the following script under TCPDump:

    import urllib
    fp = urllib.urlopen("http://www.python.org")
    print len(fp.read())

the first three bytes send to the server should be "GET".  if they're
not, the script should raise an exception (if this happens, please post
the output from TCPDump).

</F>




More information about the Python-list mailing list