Reputation: 432
I am making an HTTP request from Java using
HttpURLConnection con = (HttpURLConnection) url.openConnection();
The library used is org.apache.http.client
For some reason, the body tag in HttpPost is empty when it reaches the endpoint. (RequestParameters).To me, this is a separate Stack Overflow question. I had to send the request by querystring.
The query string parameters contain the username/password credentials as it request for a token. I am afraid the credentials will be visible as it is done over a query string though request will go over HTTPS (and HTTPS is encrypted). But I would have been less concerned if the request was POST with a payload.
I don't want anyone to view this request i.e the browser comes to my mind. The HTTP request does not show on the address bar or in Chrome Inspect (Network tab).
Nevertheless, can Apache HTTP requests done from Java, in theory, be inspected by browser? (regardless of POST with payload or querystring)
Upvotes: 0
Views: 488
Reputation: 2228
The answer is No, in my knowledge. You will be able to view the requests originating from the browser tab in developer tools.
If you want to see the network calls originating from your whole system, you can use tools like Charles Proxy.
Upvotes: 1