2008/10/30 Serge Aleynikov <span dir="ltr"><<a href="mailto:saleyn@gmail.com">saleyn@gmail.com</a>></span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Is there a way in http:request/4 call to limit the number of bytes<br>
returned without waiting for the full content?  I have a URL to query<br>
frequently where the most relevant information is in the beginning of<br>
the page and the tail of the document is useless but large.<br>
<br>
There is {full_result, boolean()} option (that doesn't seem to be<br>
documented well, so I am unclear what it does) but I don't see how to<br>
limit the number of bytes to be received.<br>
<br></blockquote></div><br>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.<br><br>See section 14.35 in <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html">http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html</a><br>
<br>cheers<br>Chandru<br><br>