Hi Guys, On Wed, Feb 17, 2010 at 3:57 AM, Nelson, Erik - 2 <[email protected]> wrote: > > From: Leon Mergen > > >>On Sat, Feb 13, 2010 at 8:53 AM, Glyn Matthews > >>Yes, if you download it using HTTP all binary data needs to be MIME encoded. > > > Sorry to interrupt, but is this true? I always thought the HTTP > Context-Length: response parameter was invented for this purpose, to be able > to transfer raw binary data. > > I thought it was possible, since Content-Length can be specified, and with > chunked transfer each chunk has a byte count associated with it. >
Yes, it is possible. You can already use the cpp-netlib client to download in HTTP 1.0 mode binary data -- there are even tests packaged in the library to prove it. > > I would be a little surprised if every jpeg being shipped around the net was > being converted to/from base64 with every transfer... seems like it would be > a ton of overhead. > > That being said, I'm no expert in this field, and I don't know what the plan > for cpp-netlib is in this area. > The plan is to keep cpp-netlib as it is right now able to handle binary data (of course transferred in the appropriate network byte order) as it comes over the wire. Have you encountered a bug that's not allowing you to download binary data using the HTTP client? -- Dean Michael Berris cplusplus-soup.com | twitter.com/deanberris linkedin.com/in/mikhailberis | facebook.com/dean.berris | deanberris.com ------------------------------------------------------------------------------ SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev _______________________________________________ Cpp-netlib-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/cpp-netlib-devel
