socket send query

connections cardiff sb at networkdata.co.uk
Wed Feb 18 19:12:09 CET 2004


hi all,

i want to mimic what another software program sends to a server.

if i look with a sniffer i can see the hex data that is being sent by
the real software program.

how can i send such data?

if i send the hex data values with a socket send then python assumes i
am trying to send a string of ascii characters and when i look at what
was sent in the sniffer i see the data i sent has been coverted into
their corresponding hex values.  I want python to leave it alone and
send it.

i guess if my hex values had acsii equivalents i could send them and
they would be converted to the data i want but i dont think all my hex
data has acsii equivalents..

is there another way i should be doing this?

PS.  IN CASE YOU DIDNT NOTICE I AM A NEWBIE!

many thanks

s



More information about the Python-list mailing list