• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

httpclient and followRedirects

 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm trying to connect to a web application on my local server (tomcat) using the HttpClient from this library commons-httpclient-2.0.2.jar.

I get this message even if I set followRedirects to true (httpMethod.setFollowRedirects(true)

2005/01/19 08:05:08:435 EST [INFO] HttpMethodBase - Redirect requested but followRedirects is disabled
java.lang.InternalError: the HTTP server return an error: 302 (Moved Temporarily)

I have no idea how to solve this problem. I tried to find out on the internet, I got nothing. And does it mean exactly?
 
Ranch Hand
Posts: 123
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Brian,
<shot in the dark>
Is there a setting in Tomcat's configuration that governs redirects?
Maybe that could be the source of the problem?

</shot in the dark>

Julia
 
You guys wanna see my fabulous new place? Or do you wanna look at this tiny ad?
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic