You should be ok with standard class HttpURLConnection. To write request body use getOutputStream.
On Fri, Jul 28, 2017 at 10:59 AM, lucast <[email protected]> wrote: > Dear forum, > I need to send an HTTP PUT/POST request to an arbitrary URL and I have to > set headers and body. > > Is there a way of doing this within wicket without using 3rd party > libraries > such as spring framework's RestTemplate? > > I looked at wicketstuff-restannotations > <https://github.com/wicketstuff/core/tree/master/ > wicketstuff-restannotations-parent> > , but it looks like it's more about publishing REST APIs rather than making > HTTP calls to external URLs. This is my limited understanding and it is > likely I may be wrong. > > Thanks in advance, > Lucas > > PS: this is my first post in 2 years. It's good to be back working with > wicket once more. =0) > > -- > View this message in context: http://apache-wicket.1842946. > n4.nabble.com/HTTP-PUT-POSTs-to-arbitrary-URLs-within- > wicket-without-use-of-any-other-3rd-party-library-tp4678338.html > Sent from the Users forum mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
