How do I do the equivalent of this:
curl \
--insecure \
--request POST \
--header "<header>" \
--data "<Complex JSON Object>" \
"https://<username>:<password>@<URL>?<params>"
in Java?
The authentication is weird and only works if I use the --insecure
flag and the basic authentication.
I've tried all sorts of libraries, but I can't get it to work.