Hi Alan,
  Have checked out head from repository link. Was trying to work on cfhttp
tag.
  Couldn't make much progress but did figure this out:
1) gzip support is still required
2) httpconnection of java is designed handle this transparently
3) in openbd we are creating httpconnection from
cfengine.thisplatform.gethttpconnection. Not sure where this class is
defined. And probably that definition does not leverage the java
httpconnection class
4) The behaviour is tabulated here:
getasbinary accept-encoding filecontent when gunzipped no - html ascii
nothing no gzip,deflate gibberish nothing yes gzip,deflate binary html
asciiyes - binary nothing

That means either you don't accept gzip but if you want to save on transfer
load you must know that gzip is goint to come and hence make getasbinary =
yes. How do you know that without connecting up? So you cannot practically
optimize on gzip.

The luxury of gzip or the lack thereof continues.... and i hope to be able
to use it as my first contribution to openbd.

Thanks,
Nitish
2011/8/22 Alan Williamson (aw2.0 cloud experts) <[email protected]>

> Thanks for that ... i believe this to be a bug.
>
> If you are downloading an actual ZIP file then yes, you want the actual raw
> binary as the ZIP (not gibberish, but compressed content).   For everything
> else, it should not be the compressed format, as the GZIP is being used to
> minimise the bandwidth between client and server.
>
> So I believe this to be a bug on CFHTTP implementation.  I will address
> that this week.   And probably enable the GZIP by default as it should be.
>
>
> nitish pandey wrote:
>
>  For now , for you guys, the solution to the gibberish is this ( i wonder
> how people develop such esoteric stuff in the first place):
>
>  *    http://stackoverflow.com/questions/2974197/cfhttp-encoding-problem*
>
> Funny why should a browser unzip it and httpclient should not.
>
>  --
> official tag/function reference: http://openbd.org/manual/
> mailing list - http://groups.google.com/group/openbd?hl=en
>



-- 
-Nitish
"Faith is a free Option"
http://www.forcesofindia.com/profiles/np

-- 
official tag/function reference: http://openbd.org/manual/
 mailing list - http://groups.google.com/group/openbd?hl=en

Reply via email to