Callback service gets status 302 for a servlet, direct browser access status 200

11 views
Skip to first unread message

jan via StackOverflow

unread,
May 17, 2017, 8:13:06 AM5/17/17
to google-appengin...@googlegroups.com

I created a servlet on Google Appengine. I I call it in a browser I can see it and the nework console of Chrome and Firefox show me one request with status code 200.

Now I am trying to integrate a webservice thats sends a callback response to this URL. And this service tells me, it receives a "302 Found" status code and therefore does not work.

Could this be related to some SSL redirect? I tried with https and http. Both do return a 200 in the browser, 302 for the web service. Is there a better tool to debug this than the browser? Is the browser maybe hiding the redirect?

Or whats the issue here?



Please DO NOT REPLY directly to this email but go to StackOverflow:
http://stackoverflow.com/questions/44024515/callback-service-gets-status-302-for-a-servlet-direct-browser-access-status-200

Axel via StackOverflow

unread,
May 17, 2017, 8:58:09 AM5/17/17
to google-appengin...@googlegroups.com

The browser console [F12] may hide the request if you watch the requets of the current page only. In Chrome Developer tools -> Network you can clear the list, then type the initial url in browser address bar.

Or: use a command line tool, to show the header i.e.

curl -I [url]
wget -O /dev/null -S [url]

The redirect is in the line "Location: ..." of the shown response header.



Please DO NOT REPLY directly to this email but go to StackOverflow:
http://stackoverflow.com/questions/44024515/callback-service-gets-status-302-for-a-servlet-direct-browser-access-status-200/44025363#44025363
Reply all
Reply to author
Forward
0 new messages