On 19/05/2009, Noel O'Brien <[email protected]> wrote:
> Hi All,
>
>  I'm trying to use the Recording Proxy to capture the traffic from our client 
> (a J2ME app which uses HTTP) to our server. I've set up JMeter (2.3.2) 
> correctly and when I enable my browser to user the JMeter proxy (as a test) 
> it successfully records requests.
>
>  I've set the proxy settings in the Wireless Toolkit (Sun, 2.5.2) and run the 
> emulator. Traffic is hitting the proxy but I'm getting "[Sample Failed]" and 
> "Cannot handle CONNECT - probably used HTTPS". I'm not using HTTPS , all the 
> traffic is HTTP. From looking at the code, the problem seems to be that the 
> JMeter proxy won't handle a CONNECT request (I've substituted the url):
>
>
>  2009/05/19 13:50:45 DEBUG - jmeter.protocol.http.proxy.HttpRequestHdr: 
> browser request: CONNECT <the url>:80 HTTP/1.1
>
>  2009/05/19 13:50:45 DEBUG - jmeter.protocol.http.proxy.HttpRequestHdr: 
> parser input: CONNECT <the url>:80 HTTP/1.1
>
>  2009/05/19 13:50:45 DEBUG - jmeter.protocol.http.proxy.HttpRequestHdr: 
> parsed method: CONNECT
>  2009/05/19 13:50:45 DEBUG - jmeter.protocol.http.proxy.HttpRequestHdr: 
> parsed url: <the url>:80
>  2009/05/19 13:50:45 DEBUG - jmeter.protocol.http.proxy.HttpRequestHdr: 
> parsed version:HTTP/1.1
>  2009/05/19 13:50:45 ERROR - jmeter.protocol.http.proxy.Proxy: Not 
> implemented (probably used https) java.lang.IllegalArgumentException: Cannot 
> handle CONNECT - probably used HTTPS
>  at 
> org.apache.jmeter.protocol.http.proxy.HttpRequestHdr.parseFirstLine(HttpRequestHdr.java:212)
>  at 
> org.apache.jmeter.protocol.http.proxy.HttpRequestHdr.parse(HttpRequestHdr.java:164)
>  at org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:165)
>
>  Any thoughts on how to get around this problem?

JMeter Proxy does not support CONNECT; I doubt it ever will, as it is
not intended as a general-purpose proxy.

Not sure why the application should be sending a CONNECT for HTTP;
perhaps it is due to the way the proxy was set up? Maybe because the
Sun toolkit is wireless, it uses CONNECT to tunnel SSL over HTTP?

You could try using a "real" HTTP proxy to see what traffic is
actually being sent. If that can record the requests to a file, you
should be able to use that to build up a JMeter test plan.

>  --
>  Regards,
>
> Noel
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to