Re: socket call does not read full content



jainarunk@xxxxxxxxx wrote:
I am implementing a http client and reading the content from the
socket. For MIME type

text/html the socket reads the full Content-Length bytes,

You were lucky. You will get however many bytes are available at the time of the read. If the content is split over several frames, you may not get everything in a single call.
.



Relevant Pages

  • Re: Perl Hacker, Python Initiate
    ... I'm lucky enough to be able to completely ignore Perl. ... import sys ... import socket ... See also getaddrinfo(). ...
    (comp.lang.python)
  • Re: socket call does not read full content
    ... text/html the socket reads the full Content-Length bytes, ... You were lucky. ... However after reading some 21 bytes less, the client does not have ...
    (comp.os.linux.networking)
  • socket call does not read full content
    ... I am implementing a http client and reading the content from the ... For MIME type ... text/html the socket reads the full Content-Length bytes, ...
    (comp.os.linux.networking)
  • Re: lx90 current consumption?
    ... Lucky you :-) ... what the maximun current consumption ... is through the 12volt socket on the side? ...
    (uk.sci.astronomy)
  • Re: Asynchronous sockets and buffer size
    ... I wasn't encountering a problem with EndSend yet because I was lucky enough to be sending all the data each time. ... That's pretty much all of my network code except for the try catch blocks where i catch SocketExceptions, the part where i create the socket, and the part where it begins with Socket.BeginConnect. ...
    (microsoft.public.dotnet.languages.csharp)