Hello,
I would like to know if it is possible to follow a http 302 redirect from a servlet, ie.:
(I ask this, because I want to build an Google Drive app, based on SmartGWT. This means redirecting now and then to grant access to documents etc. Alternatively I have to rewrite their example code to send auth urls down to the client, and redirect from there, but that would mean a bit more work.)
I call my servlet using an RPCRequest:
I am looking for a general direction to go in this matter.
TIA.
I would like to know if it is possible to follow a http 302 redirect from a servlet, ie.:
Code:
//servlet response.sendRedirect("http://some_external_site");
I call my servlet using an RPCRequest:
Code:
RPCRequest req = new RPCRequest(); ... RPCManager.sendRequest(req, myCallback);
TIA.