tags:

views:

19

answers:

1

we have an application through which we connect to remote host on port 23 and we have to do some repetative work.. what i am thinking is while runnig that application manually can i log or store the request that apllication sending to remote host and what resposes application receving to that request

i have to run my application and at backgroud it will log all the request and responses can anyone tell me how it can be done in python..

A: 

what i was thinking was i will connect to remote host using python program at backend and receive response from remote host but its not working

as first manual connection with application to remote host and i will connect again to same remote host using python script and i will do the activities through manual application(login and other things).....and python program which already connected to that host will also receive those responses..

but it is just connecting to host no other response from(remote host) at my python program..

my assumption was wrong that connecting to same remote host with same port with maunal program and with the python script will be same but its wrong its because i found that connection is defined by five numbers the server port,client (ephemeral)port,the server ip address ,client ip address and protocol..these ephemeral adresses are playing role here..

is any one hase any idea how it can be done or the suggesions how it will be done..thx in advance..

sagar