How to test cloud based https url connectivity from Linux server via proxy server

Hi experts,

1. How to test cloud based https url connectivity from Linux server via proxy server (e.g https://xxxx.com./somecontext)
2. Unfortunately, I cannot install any utility on the Linux server (I do not have root access)
3. but I can copy any jar/files to test this connectivity.
3. Saw some link, testing using telnet but that’s not helping…getting invalid command. Think this command is not supported?

Thanks in advance
enthuguyAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Daniel HelgenbergerCommented:
Hello,
can you please elaborate on what exactly you want to test? I figure, you are developing a Java application for a company witch will use this through its proxy?
Can you please clarify some points:
- The http(s) server is a public (cloud based) machine?
- Your linux server - is what exactly? Is it some server in your local network? Is it the only one witch needs access via proxy?
- The proxy server, is this a machine on your local network or something witch is in the http path in general?
- On which servers do you not have root rights but only FTP access (it seems)

General note: Access via proxy is something you cannot influence on your http server but this is the job of the proxy. HTTPS in general is not proxy'ed - do to the nature of the protocol. Bu this is highly subject to the person setting up a local proxy.
If my above assumption is true, it will do if you install the same proxy on your localhost; have it listen on loopback, and set your browser to use the loopback-proxy.
0
enthuguyAuthor Commented:
Hi helge, sorry for the lack of info.

- I have a endpoint (https url) given by a cloud vendor. We use this URL to import data onto the cloud app. This cloud app as two interfaces,
        1,  java based utility to import data. we had downloaded this java app on my linux server (jump box) and by using this java app we send data/xml to cloud app.
        2, Webservice interface, which other applications uses to send real time data.

I use java based util (option 1). Which was working fine few days before


- Linux server is kind of a jump box in our local network. Where it uses/invokes downloaded java to import data into cloud based https endpoint. This linux server makes call via proxy to cloud app (outside world).

- Proxy server is another machine in our local network...I believe.

- On the Linux (jump box), I do not have root access. But I can upload jar/util to help my issue.

- As I mentioned above, there is another linux server (middleware) which uses same proxy server to make webservice call to the same cloud app (not using java utility that I use). This works fine without any issues.

Secnario:
1. Linux Server/Jump box > Java util > same proxy server > same cloud app. Failing with not reachable. Once again, this was working fine few days before. It just stopped working now.


2. Linux Server/middleware > webserivce call > same proxy server > same cloud app. Works fine.

3. From cloud app admin web interface, I can see middleware calls coming thru, but not the jumpbox/java util call from audit log.

I was assuming something has changed in the proxy server settings (whitelisting jumpbox) and also thinking there could be some way to test connectivity test.

Assuming, we have a method to test, if I test from jumpbox it should fail. If I test from middleware server, it should pass

Thanks again
0
Daniel HelgenbergerCommented:
Thanks for the info.
To test the proxy, the tool of choice would be curl. I hope you have ssh shell access to the linux jumpserver?

If you have some kind of ssh access use curl, I posted the full output so you can compare it. Should be the same for you:
$ curl http://www.google.com/index.html
<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
<TITLE>302 Moved</TITLE></HEAD><BODY>
<H1>302 Moved</H1>
The document has moved
<A HREF="http://www.google.de/?gws_rd=cr&amp;ei=8_FYUpDnB6OC4gT7wIC4Bw">here</A>.
</BODY></HTML>
$ curl https://www.google.com
<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
<TITLE>302 Moved</TITLE></HEAD><BODY>
<H1>302 Moved</H1>
The document has moved
<A HREF="https://www.google.de/?gws_rd=cr&amp;ei=rPlYUvmYD4ek4AT1nYG4Dw">here</A>.
</BODY></HTML>

Open in new window

which will show you the index.html of google via HTTP and HTTPs. Please also curl something from your actual cloud service there.

If you have not this output, you are not permitted on the proxy or there is any other network related problem:
$ echo $http_proxy

Open in new window

may show you your proxy. If you have any output, unset it and try again:
$ http_proxy=
$ curl http://www.google.com/index.html

Open in new window

But most commonly you will have a transparent proxy; so you will need to test it in other ways.
Do you know what the java app does exactly? Maybe just plain GET/POST/PUTs? All of these requests can be done with curl as well.

If you do not have ssh access:
You can try this java script:
https://code.google.com/p/proxy-vole/source/browse/trunk/proxy_vole/src/com/btr/proxy/test/ProxyTester.java?r=64
I am no java developer, but it seems to do the job. Anyway you can write some java script making http/s requests to well known sites like google.com.

If anything fails, you can still use the telnet method. But you need to know the actual proxy server on the network for this since you need to telnet to the proxy.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
enthuguyAuthor Commented:
Hi helge, thx for the suggestions. Will try that monday.

What is the telnet way? could you help on that pls? how to test it with sample commands?

Thanks again
0
Daniel HelgenbergerCommented:
Basically you are doing the stuff a server would do manually. This involves 'telneting' into a remote machine and executing commands. Since the service you are calling cannot tell the difference between you and for instance a web browser, you can find out whatever this service is working or not.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.