This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSP and the fly likes 302 Found Error when Trying to get the contents of url using jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "302 Found Error when Trying to get the contents of url using jsp" Watch "302 Found Error when Trying to get the contents of url using jsp" New topic
Author

302 Found Error when Trying to get the contents of url using jsp

Raihan Jamal
Ranch Hand

Joined: Mar 23, 2010
Posts: 86
I am trying to make a ajax call to other domain locally from my computer by writing some proxy code in jsp. And this is my jQuery AJAX code that is calling proxy.jsp page.



Any my proxy.jsp file is:-




And When I get the response back from this proxy.jsp file, I get this error:-


And if I check the status code in that above jQuery AJAX code then it is 200. So that means something is happening in the proxy.jsp page. Why it is not able to get the contents of url. Any suggestions will be appreciated...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: 302 Found Error when Trying to get the contents of url using jsp
 
Similar Threads
Trying to Redirect. 302 Error. HTTP CLIENT
jQuery ajax request and 302 status code
java.io.IOException: Server returned HTTP response code: 401 for URL:
Ajax: ResponseXML is null
White spaces are required between publicId and systemId.