[erlang-questions] inets http client

Chandru chandrashekhar.mullaparthi@REDACTED
Thu Oct 30 17:57:46 CET 2008


2008/10/30 Serge Aleynikov <saleyn@REDACTED>

> Is there a way in http:request/4 call to limit the number of bytes
> returned without waiting for the full content?  I have a URL to query
> frequently where the most relevant information is in the beginning of
> the page and the tail of the document is useless but large.
>
> There is {full_result, boolean()} option (that doesn't seem to be
> documented well, so I am unclear what it does) but I don't see how to
> limit the number of bytes to be received.
>
>
I don't have an answer to your question, but if your server supports it, you
could probably use the Range header in the request to specify which bytes of
the response you want.

See section 14.35 in http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html

cheers
Chandru
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20081030/96a6db07/attachment.htm>


More information about the erlang-questions mailing list