I’m writing a client applet, just post a HTTP Request, with a callback url, like this:
//http:url?redirect_url=MY_REDIRECT_URL. And then it will go to the specified redirect-url with something appended, which I interest in.
How can I get the shipping-useful-info redirect url ?
Which Java package should I use ?
Using the
HttpRequestyou can extract the originating host and port, that’s all. If you want to have a callbackURL, you need to include it in the body of your HTTP request, in an application specific manner. For example, you could use GSON and put it in JSON, or you could just use plain text if that’s all there is in your body.