This project has moved. For the latest updates, please go here.

Headers in Response

Sep 8, 2011 at 9:47 PM

As a suggestion/question/request are you considering adding headers to the LoadRequestResult rather than just the response stream?

This looks like an excellent framework but the first webservice I tried it with unfortunately returns the login details in the HTTP headers which from looking at the code doesn't look like they'll be passed on.

Thanks

Coordinator
Sep 8, 2011 at 10:45 PM

Hi -

The way to handle this is to encode that information into the stream by writing a custom WebLoadRequest that reads the headers and adds that information in.  It's a little inefficient to encode into a stream then decode it, but it's necessary because that stream will be written to disk as a cache.  When you load from a cache later, those headers won't be present, and if they are necessary then, you won't have the headers anyway.

Let me know if that doesn't make sense.

Thanks,

Shawn