Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

testing http and https connection via proxy?

 
Norman Meister
Ranch Hand
Posts: 52
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,

i need to know how can I test on the linux server the http and https connections using telnet and openssl but involving http proxy on 8080?

I am not sure how to go via proxy in this case?

From the server there is no direct outside connection possible, but we have to go via proxy.

For example i know simple telnet command to test http connection but since we have proxy in between i am not sure how to use proxy in this case.

thanks
 
Joe Ess
Bartender
Posts: 9362
11
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Am I reading this right, you are asking about how to use telnet to test a connection? Not Java?
 
Tim Holloway
Bartender
Posts: 18419
60
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
telnet is simple to test http:

prompt$ telnet localhost 80
> GET /index.html

will usually do it.

Https is harder to test, since telnet doesn't do SSL.

Testing to see if your localhost is proxying port 80 https to port 8080 (tomcat https) - for example, using Apache or Nginx is just doing the same thing I just showed above. If you do a GET on a page that doesn't exist, you should get a "404" message back. The 404 page for Tomcat is distinctly different from the 404 page for Apache (and likewise for Nginx), so by checking the text of the 404 page you can see if the proxy is actually proxying.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!