On Tue, 2012-08-21 at 14:49 -0500, Godbey, David J. (HQ-LM020)[INDYNE INC] wrote: > Ok, I've got some of this figured out. > > Turns out that I wasn't digesting the HttpEntity properly, so I wasn't seeing > the content. After figuring out how to use the EntityUtils class, I could see > what the issue was: that the resource /ews/Exchange.asmx was off limits, and > that a redirect is necessary. Here are the headers again: > > HTTP/1.1 302 Found > ** Headers ** > Connection=close > Date=Tue, 21 Aug 2012 19:42:14 GMT > Server=Microsoft-IIS/6.0 > X-Powered-By=ASP.NET > X-AspNet-Version=2.0.50727 > Location=/ews/Services.wsdl > Cache-Control=private > Content-Type=text/html > > The 302 tells me I need to redirect, and the location header tells me where > to redirect. > > How do I do that? >
HttpClient handles valid redirects automatically completely transparently. Could you please produce a wire / context log of the HTTP session as described here [1] and post it to this list? Oleg [1] http://hc.apache.org/httpcomponents-client-ga/logging.html --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
