I want to send https consumer request using camel-jetty component and that address returns some response in JSON format, below I mention my DSL code.
from("jetty:https://someSiteAddress.com/api/control/authorizeUser?username=__&password=__").to("stream:out");
I am getting this warning:
[WARNING]
java.net.SocketException: Permission denied
at sun.nio.ch.Net.bind0 (Native Method)
at sun.nio.ch.Net.bind (Net.java:433)
at sun.nio.ch.Net.bind (Net.java:425)
at sun.nio.ch.ServerSocketChannelImpl.bind
But whenever I hit this HTTP URL in browser it will execute perfectly with authentication.
If anyone knows what to do to perform this action in apache camel please help me it will be very cheerful for me and others.
And how could I know which method camel using for sending a request like POST or GET.
Thank You
https://someSiteAddress.com/api/control/authorizeUser?username=__&password=__, correctly? If I'm right, you should use thecamel-httpcomponent into. The way your code is described, you are exposing the URL, not consuming it. If you're having troubles with it, let me know that I put it in a answer. - Ricardo Zaninihttps://someSiteAddress.comnot consuming from it. To consume from an url you have to specified it usingto(). - Ricardo Zanini