jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <>
Subject Re: FW: https recording problem
Date Thu, 12 Mar 2009 16:00:01 GMT
On 12/03/2009, sebb <> wrote:
> On 12/03/2009, Sirish_Chandra <> wrote:
>  > Hi Team,
>  >
>  >         When I am trying to record an https site through proxy by checking the
option " attempt HTTPS spoofing" it is able to record the first page where the method "get"
is used. When the method POST is coming into picture(i.e. login page)
>  >  Jmeter is not able to record it and throwing some exception to the browser. Need
help, how to overcome this problem? Please throw some light on this issue.
>  >
> Impossible to say definitely what the problem is, though it looks like
>  the server does not like something that was sent.
>  If the server is accessible from the internet, perhaps you could send
>  me the URL privately?

The URL (sent privately) used a GET of an http: page on which there is
a link to an https: page. I.e. only the second request requires

HTTPS spoofing does not work properly in this case.

The problem is that JMeter only translates https: to http: for
responses to requests that were spoofed. If the request was sent as
http, then the page contents are not processed to look for https:

A work-round is as follows:

Use the URL match string to ensure only the appropriate http: URLs are spoofed.
When the https: link is clicked, this will result in a 501 error. Edit
the URL to remove the https: and retry using http: - this should be
spoofed (converted to https) by JMeter.

The above works for me for the sample URL.

HTTPS spoofing mode works fine if all http: urls are to be converted to https:.
However where URL matching is used, the code obviously needs tweaking
to work better.

>  Possible work-rounds are:
>  It may work if you switch off the browser proxy just for the login,
>  and turn it on again later to record the rest of the session.
>  Or you may find that Badboy will work for you.
>  >  The Exception is:
>  >
>  >
>  > Unexpected end of file from server at
at at
at at
at at
at org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample( at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(
>  >
>  >
>  >
>  >  Thanks and Regards
>  >  Sirish
>  >
>  >
>  >  This email (including any attachments) is intended for the sole use of the intended
recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION.
Any review or reliance by others or copying or distribution or forwarding of any or all of
the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient,
please contact the sender by email and delete all copies; your cooperation in this regard
is appreciated.
>  >
>  >  ---------------------------------------------------------------------
>  >  To unsubscribe, e-mail:
>  >  For additional commands, e-mail:
>  >
>  >

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message