[erlang-questions] Parsing RSS (quick fix)

Ewan Higgs ewan_higgs@REDACTED
Thu Sep 7 04:32:12 CEST 2006


--- Bob Ippolito <bob@REDACTED> wrote:

> What it does look like is an incorrectly parsed
> HTTP/1.1 chunked
> encoding response.

This is what's happening. I ran through the example
and found the quickest fix was to make the request
using HTTP/1.0 instead of HTTP/1.1.

Currently, the response parsing in www_tools merely
skims for "\r\n\r\n" and tosses that data away and
returning the reamining message. HTTP/1.1 can have the
chunked encoding response, that Bob mentioned, after
the header and before the message. This will be an
octal number followed by another "\r\n" and requires
the parsing look for the string "Transfer-Encoding:
chunked" in the header to determine if the chunk data
will be present.

Share and enjoy,
Ewan


	
	
		
___________________________________________________________ 
All new Yahoo! Mail "The new Interface is stunning in its simplicity and ease of use." - PC Magazine 
http://uk.docs.yahoo.com/nowyoucan.html



More information about the erlang-questions mailing list