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? 

-- 
Regards, 
Noel 

Reply via email to