ZnClient Chunked data ?
I'm using ZnClient to get an XML file and get the following: [image: Inline image 2] Here's the request: client := ZnClient new url: uri; headerAddAll: headers. client get. Is the prefix of the entity related to the chunked transfer encoding?
François, There is no encoding specified in the response, Zn falls back to ZnNullDecoder by default. You can change that with the recently introduced DynamicVariable ZnDefaultCharacterEncoder. Like this: ZnDefaultCharacterEncoder value: ZnUTF8Encoder new during: [ ^ ZnClient new get: 'http://zn.stfx.eu/zn/small.html' ] Sven On 24 Jun 2014, at 18:48, François Stephany <tulipe.moutarde@gmail.com> wrote:
I'm using ZnClient to get an XML file and get the following:
<Screen Shot 2014-06-24 at 18.46.27.png>
Here's the request:
client := ZnClient new url: uri; headerAddAll: headers. client get.
Is the prefix of the entity related to the chunked transfer encoding?
Works great! Thanks a lot Sven =) On Tue, Jun 24, 2014 at 8:09 PM, Sven Van Caekenberghe <sven@stfx.eu> wrote:
François,
There is no encoding specified in the response, Zn falls back to ZnNullDecoder by default. You can change that with the recently introduced DynamicVariable ZnDefaultCharacterEncoder. Like this:
ZnDefaultCharacterEncoder value: ZnUTF8Encoder new during: [ ^ ZnClient new get: 'http://zn.stfx.eu/zn/small.html' ]
Sven
On 24 Jun 2014, at 18:48, François Stephany <tulipe.moutarde@gmail.com> wrote:
I'm using ZnClient to get an XML file and get the following:
<Screen Shot 2014-06-24 at 18.46.27.png>
Here's the request:
client := ZnClient new url: uri; headerAddAll: headers. client get.
Is the prefix of the entity related to the chunked transfer encoding?
participants (2)
-
François Stephany -
Sven Van Caekenberghe