[xml] Transfer-Encoding: chunked



Hi All,

We tried using xsltParseStylesheetFile with a URL,  It gave  us an error saying that "start tag '<' not found",
While Investigating that we found that our server is sending the data in chunks with the header "Transfer-Encoding: chunked"
The Debug Watch on the xmlNanoHTTPOpen() shows the following

48 54 54 50 2f 31 2e 31 20 32 30 30 20 4f 4b 0d 0a 43 6f 6e 74 65 6e 74 2d 54 79 70 65 3a 20 74 65 78 74 2f 70 6c 61 69 6e  HTTP/1.1 200 OK..Content-Type: text/plain
0x00A30071  0d 0a 4c 61 73 74 2d 4d 6f 64 69 66 69 65 64 3a 20 53 75 6e 2c 20 31 37 20 4a 61 6e 20 32 30 30 31 20 31 39 3a 31 34 3a 30  ..Last-Modified: Sun, 17 Jan 2001 19:14:0
0x00A3009A  37 20 45 53 54 0d 0a 45 78 70 69 72 65 73 3a 20 53 75 6e 2c 20 31 37 20 4a 61 6e 20 32 30 33 38 20 31 39 3a 31 34 3a 30 37  7 EST..Expires: Sun, 17 Jan 2038 19:14:07
0x00A300C3  20 45 53 54 0d 0a 53 65 72 76 65 72 3a 20 4d 75 6c 65 2f 4d 6f 6e 65 74 0d 0a 44 61 74 65 3a 20 46 72 69 2c 20 32 30 20 4a   EST..Server: Mule/Monet..Date: Fri, 20 J
0x00A300EC  75 6e 20 32 30 30 38 20 30 34 3a 32 34 3a 31 34 20 45 53 54 0d 0a 54 72 61 6e 73 66 65 72 2d 45 6e 63 6f 64 69 6e 67 3a 20  un 2008 04:24:14 EST..Transfer-Encoding:
0x00A30115  63 68 75 6e 6b 65 64 0d 0a 0d 0a 31 30 30 30 0d 0a 3c 3f 78 6d 6c 20 76 65 72 73 69 6f 6e 3d 22 31 2e 30 22 3f 3e 0a 3c 21  chunked....1000..<?xml version="1.0"?>.<!
0x00A3013E  2d 2d 0a 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d  --.======================================
0x00A30167  3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 0a 4e 61 6d 65 3a 20 09 09 63  ===============================.N

Does LibXML handle chunked data straight from the HTTP ?

--
Regards
Vish

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]