Fiddler doesn't show http requests from my java backend - java

In debug I see following row:
It is usuall apache http client.
But in fiddler I don't see this request.
I gave read following article Configure a Java Application to Use Fiddler
And jvisualvm shows following information:
In fiddler I see all requests from browser.
How to see request from backend?
UPDATE
while this row executes I see java.net.ConnectException: Connection refused: connect but I think that i anyway should to see attempt to make request

Related

CONNECT requests are not supported

I am writing an HTTPS proxy in play framework, yet every time I try to run it on a website that has ssl encryption I am getting this error in my server:
akka.actor.ActorSystemImpl(play-dev-mode) Illegal request, responding with status '400 Bad Request': CONNECT requests are not suppo
rted: Rejecting CONNECT request to '//any.website:443'
The proxy works well on HTTP, yet HTTPS is the problem. I tried changing my application.conf to have a port destined to work on HTTPS, but when I try to run it with the keystore i setup using the keytool command I am getting the following error in my browser:
Secure Connection Failed
The connection to the server was reset while the page was loading.
The page you are trying to view cannot be shown because the authenticity of the received data could not be verified.
Please contact the website owners to inform them of this problem.
Any workaround to allow HTTPS on a play framework proxy server?

Java how can i enable ssl debug

i am using a java program to send an http request to a website with SSL (https) to do more exactly "https://www.iplocation.net/", so i am sending request with proxy but i have continually errors with connection, i am sending the request with Jaunt API http://jaunt-api.com/ i get connection 1 or 2 time but then i get error connection, searching in google i read that a guy say that i have to Enable SSL debugging and he say that i have to use
-Djava.net.debug=all but he don't explain anything and i don't know if that is a code or a configuration in java, if someone know how can i enable ssl debugging please can explain me step by step? i just wanna do (HTTPS) resquest and don't get always error connections.

Spring RestTemplate on Jelastic - Connection Refused when requesting external rest service

I have application that need to call Rest service, to do authentication process. The service and my application are in a same server. I used Spring RestTemplate to call it. When it tested in localhost, it works perfectly. But when I deploy it to the cloud server (in this case, Jelastic) I get this error:
I/O error on GET request for "[my_rest_service_address]":Connection refused; nested exception is java.net.ConnectException: Connection refused
All the code is follow this doc : http://docs.spring.io/spring/docs/3.0.x/javadoc-api/org/springframework/web/client/RestTemplate.html. Only the url that changed to my rest url.
Is it happened because jelastic server blocked outbound request? But, both the service and my application are in the same server, why it still blocked?
Please explain to me, what is the problem? Thanks
The http 401 code means that the user that made the request is not authenticated. It can be the user of your webapp or the user used for the rest call.
It can for example that different credentials are used in prod and test, different security schemes in each environment, etc.

Occurred exception "invalid version format" on Netty project when I request http and https connection

I'm using netty client now for making http connection, and I have a question when I add https connection in this project.
To add https connection, I've created another pipeline to add SslHandler and attached it to existing client code. Also created new handler for SSL handling and added it to the pipeline.
After then I've added handshake when a bootstrap connection was completed and it was succeed.
However I've got an exception as "java.lang.IllegalArgumentException: invalid version format: OK" when client handler is receiving response data from server.
I've succeed to get a response data for only one of https connection without any exception by simple test code, but when I rebuild it to my project and try to get some http and https connection then it failed.
Could you please let me know how I can fix it and what is the problem?

Red5 RTMPT not working

I am trying to establish a connection to Red5 server through RTMPT. I am using the Red5 client jar red5-client-1.0.jar. While trying to connect, the following are successful.
POST /open/1 HTTP/1.1
POST /send/DMPDQNDRFPCCV/1 HTTP/1.1
POST /idle/DMPDQNDRFPCCV/2 HTTP/1.1
POST /idle/DMPDQNDRFPCCV/3 HTTP/1.1
After this, when the client sends
POST /idle/DMPDQNDRFPCCV/4 HTTP/1.1
I get the following error on the client side:
"Idle: unknown client session: DMPDQNDRFPCCV"
What is the cause of this error? Is there any configuration to do in Red5. I have done all the necessary configurations to enable RTMPT as in http://gregoire.org/2009/01/28/rtmpt-and-red5/
The unknown client message indicates that the session has been removed from the connection manager for some reason. I would suggest turning up the log levels and watching the console for more information.

Categories