Education won't help those who are proudly and willfully ignorant. They'll literally rather die before changing.
Tim Holloway wrote:
Tomcat doesn't send HTTP Requests. It only listens for and receives them.
.
Education won't help those who are proudly and willfully ignorant. They'll literally rather die before changing.
Vedran Bartonicek wrote:I was thinking about the case when a servlet running on a tomcat would create a http request to another server.
Tim Moores wrote:
Vedran Bartonicek wrote:I was thinking about the case when a servlet running on a tomcat would create a http request to another server.
Oh, you're asking about the port on the remote server? Yes, your code has full control over that. When you said "outbound" I assumed you were talking about the local port being used.
Tim Holloway wrote:For the case of a servlet making an HTTP request to another server, the servlet has total control over that. Tomcat doesn't get involved at all. To select a port, just code it in the URL that the servlet addresses in the usual way: protocol://server:port/context/etc like so: http://www.fakeserver.com:9080/webapp2/stuff
Education won't help those who are proudly and willfully ignorant. They'll literally rather die before changing.
Tim Holloway wrote:Data goes to ports, not from them.
Tim Holloway wrote: Data goes to ports, not from them..
Tim Moores wrote:
Tim Holloway wrote:Data goes to ports, not from them.
Gotta disagree with that, there's also a local port involved that is not under the control of the client software. That's what the Servlet API calls the "remote" port (since it's got the view from the server-side perspective).
Education won't help those who are proudly and willfully ignorant. They'll literally rather die before changing.
Make yourself as serene as a flower, as a tree. And on wednesdays, as serene as this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|