Re: [Tutor] Beginner: Socket object and packets

2015-12-05 Thread Cameron Simpson
On 05Dec2015 13:21, Marc Eymard wrote: Hi tutor, I am trying to locate the first blank line in the first received packet when pinging an internet server using a socket object. First up: everything ALan already said. Next: Note that the HTTP response need not all be in a single packet, thoug

Re: [Tutor] Beginner: Socket object and packets

2015-12-05 Thread Alan Gauld
On 05/12/15 13:21, Marc Eymard wrote: > Hi tutor, > > I am trying to locate the first blank line in the first received packet > when pinging an internet server using a socket object. You need to be careful with your descriptions. ping is a very specific message and uses ICMP echo rather than TCP

[Tutor] Beginner: Socket object and packets

2015-12-05 Thread Marc Eymard
Hi tutor, I am trying to locate the first blank line in the first received packet when pinging an internet server using a socket object. My assumption is there will be a mandatory blank line right after the http headers in accordance with the http protocol. Consider the following: import s