I am updating the section of Core Java that explains how to make a POST request. The service that I used in the previous edition was discontinued, so I tried using the USPS ZIP code lookup. The POST redirects to a GET, but that's ok—HttpURLConnection can handle redirects. But when the user agent contains the string Java, the post office redirects to a dead end!
8 plus ones
Shared publicly•View activity
- Interesting post. Please fix the bad link to http://http//stackoverflow.com/questions/3301635/change-private-static-final-field-using-java-reflectionApr 20, 2016