![Property Property](/uploads/1/2/5/3/125389853/638385735.png)
Attention, Internet Explorer User Announcement: Oracle Community has discontinued support for Internet Explorer 7 and below. In order to provide the best platform for continued innovation, Oracle Community no longer supports Internet Explorer 7. Oracle Community will not function with this version of Internet Explorer. Please consider upgrading to a more recent version of Internet Explorer, or trying another browser such as Firefox, Safari, or Google Chrome. (Please remember to honor your company's IT policies before installing new software!).
I was looking information about how to do a POST request. I need to specify that mi request is a POST request because, i'm working with RESTful web services that only uses POST methods, and if the request isn't post, when i try to do the request i receive an HTTP error 405. I assure that my code isn't wrong doing the next: I create a method in my web service that is called through GET request and i point my application to consume that web service method and it works. My code is the next: URL server = null; URLConnection conexion = null; BufferedReader reader = null; server = new URL('conexion = server.openConnection; reader = new BufferedReader(new InputStreamReader(server.openStream)); System.out.println(reader.readLine).
![Set Set](/uploads/1/2/5/3/125389853/135190839.png)
Mar 27, 2010 - URLConnection; public class TestUrlOpener { public static void. SetRequestProperty('User-Agent', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X.