You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Stas Obydionnov <st...@gmail.com> on 2013/08/01 18:57:40 UTC
Proxing only HTTP traffic.
Hi all,
I'm a new to Jmeter and I have a question:
Jmeter allows to configure proxy for HTTP Request (not proxy for recording,
regular one).
This proxy apply for both protocols, HTTP and HTTPS, I need it to apply
only to HTTP, but HTTPS should go directly.
Is it possible?
Thanks.
Stas.
Re: Proxing only HTTP traffic.
Posted by ka...@sitestress.eu.
Hi *,
a workaround could be, to use -N Option
Map the https-server to a different Name and exclude this newname with
the -N Option.
Example: https://newname and http://servername
http://jmeter.apache.org/usermanual/get-started.html#proxy_server
jmeter -H my.proxy.server -P 8000 -u username -a password -N newname
In the testplan , you have change the Servername to the Value of the
newname, but only with https Requests of corse. For http-Request use
Servername
never tried this, but it could work. mapping ip<=>name could be done in
/etc/hosts
hope it helps
karl
Am 01.08.2013 22:16, schrieb Dzmitry Kashlach:
> I was meaning HTTP Proxy Server, not HTTP Request Sampler.
> What are you trying to do?
>
> Thanks,
> Dzmitry.
>
>
> -------------------------------------------
> tel: +375291142462
> skype: dmitry.kashlach
>
>
>
> On Thu, Aug 1, 2013 at 10:57 PM, Stas Obydionnov <st...@gmail.com>wrote:
>
>> Thank you Dzmitry,
>> But I cannot find include/exclude property, not in UI, not in documentation
>> and not in code.
>> I'm looking in HTTPSampler opject, where can I find it?
>> Thanks.
>> Stas.
>>
>>
>> On Thu, Aug 1, 2013 at 9:18 PM, Dzmitry Kashlach
>> <dz...@gmail.com>wrote:
>>
>>> I think, it's possible to apply filter to whole HTTP Proxy traffic.
>>> HTTP Proxy element has "include/exclude" patterns, try to play with them.
>>>
>>>
>>> -------------------------------------------
>>> tel: +375291142462
>>> skype: dmitry.kashlach
>>>
>>>
>>>
>>> On Thu, Aug 1, 2013 at 7:57 PM, Stas Obydionnov <st...@gmail.com>
>>> wrote:
>>>
>>>> Hi all,
>>>> I'm a new to Jmeter and I have a question:
>>>> Jmeter allows to configure proxy for HTTP Request (not proxy for
>>> recording,
>>>> regular one).
>>>> This proxy apply for both protocols, HTTP and HTTPS, I need it to apply
>>>> only to HTTP, but HTTPS should go directly.
>>>> Is it possible?
>>>> Thanks.
>>>> Stas.
>>>>
>>>
>>
>
--
*Karl Hoffmann*
QA L&P
SITESTRESS.EU.: http://www.sitestress.eu/
Email: karl< @ >sitestress.eu Mobile: +491736160637
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org
Re: Proxing only HTTP traffic.
Posted by Dzmitry Kashlach <dz...@gmail.com>.
I was meaning HTTP Proxy Server, not HTTP Request Sampler.
What are you trying to do?
Thanks,
Dzmitry.
-------------------------------------------
tel: +375291142462
skype: dmitry.kashlach
On Thu, Aug 1, 2013 at 10:57 PM, Stas Obydionnov <st...@gmail.com>wrote:
> Thank you Dzmitry,
> But I cannot find include/exclude property, not in UI, not in documentation
> and not in code.
> I'm looking in HTTPSampler opject, where can I find it?
> Thanks.
> Stas.
>
>
> On Thu, Aug 1, 2013 at 9:18 PM, Dzmitry Kashlach
> <dz...@gmail.com>wrote:
>
> > I think, it's possible to apply filter to whole HTTP Proxy traffic.
> > HTTP Proxy element has "include/exclude" patterns, try to play with them.
> >
> >
> > -------------------------------------------
> > tel: +375291142462
> > skype: dmitry.kashlach
> >
> >
> >
> > On Thu, Aug 1, 2013 at 7:57 PM, Stas Obydionnov <st...@gmail.com>
> > wrote:
> >
> > > Hi all,
> > > I'm a new to Jmeter and I have a question:
> > > Jmeter allows to configure proxy for HTTP Request (not proxy for
> > recording,
> > > regular one).
> > > This proxy apply for both protocols, HTTP and HTTPS, I need it to apply
> > > only to HTTP, but HTTPS should go directly.
> > > Is it possible?
> > > Thanks.
> > > Stas.
> > >
> >
>
Re: Proxing only HTTP traffic.
Posted by Stas Obydionnov <st...@gmail.com>.
Thank you Dzmitry,
But I cannot find include/exclude property, not in UI, not in documentation
and not in code.
I'm looking in HTTPSampler opject, where can I find it?
Thanks.
Stas.
On Thu, Aug 1, 2013 at 9:18 PM, Dzmitry Kashlach
<dz...@gmail.com>wrote:
> I think, it's possible to apply filter to whole HTTP Proxy traffic.
> HTTP Proxy element has "include/exclude" patterns, try to play with them.
>
>
> -------------------------------------------
> tel: +375291142462
> skype: dmitry.kashlach
>
>
>
> On Thu, Aug 1, 2013 at 7:57 PM, Stas Obydionnov <st...@gmail.com>
> wrote:
>
> > Hi all,
> > I'm a new to Jmeter and I have a question:
> > Jmeter allows to configure proxy for HTTP Request (not proxy for
> recording,
> > regular one).
> > This proxy apply for both protocols, HTTP and HTTPS, I need it to apply
> > only to HTTP, but HTTPS should go directly.
> > Is it possible?
> > Thanks.
> > Stas.
> >
>
Re: Proxing only HTTP traffic.
Posted by Dzmitry Kashlach <dz...@gmail.com>.
I think, it's possible to apply filter to whole HTTP Proxy traffic.
HTTP Proxy element has "include/exclude" patterns, try to play with them.
-------------------------------------------
tel: +375291142462
skype: dmitry.kashlach
On Thu, Aug 1, 2013 at 7:57 PM, Stas Obydionnov <st...@gmail.com> wrote:
> Hi all,
> I'm a new to Jmeter and I have a question:
> Jmeter allows to configure proxy for HTTP Request (not proxy for recording,
> regular one).
> This proxy apply for both protocols, HTTP and HTTPS, I need it to apply
> only to HTTP, but HTTPS should go directly.
> Is it possible?
> Thanks.
> Stas.
>
Re: Proxing only HTTP traffic.
Posted by Stas Obydionnov <st...@gmail.com>.
Thank you all,
I found a solution, you can instruct the HTTP sampler to follow the
redirects or not, if not you are able to implement your flow using number
HTTP requests.
Thanks.
Stas.
On Fri, Aug 2, 2013 at 12:24 PM, sebb <se...@gmail.com> wrote:
> On 2 August 2013 09:24, sebb <se...@gmail.com> wrote:
> > On 2 August 2013 06:13, Stas Obydionnov <st...@gmail.com> wrote:
> >> Thank you all!
> >> What I'm trying to do is load the proxy server we are developing,
> sometimes
> >> proxy intercepts the request and redirects it to some other HTTP server,
> >> and this redirection is to HTTPS. What I need is that this request will
> go
> >> directly, not through proxy.
> >> The problem is, that I do not access this HTTP server directly from
> >> Jmeter's HTTP request, but as a result of redirection (302).
> >>
> >> So the only possible solution maybe the use of the Java native proxy
> >> proposed by Deepak.
> >
> > I don't think that's what he meant.
> >
> > The JMeter -H and -P parameters set both http.proxyHost/Port and
> > https.proxyHost/Port system properties.
> > So if you only want to set the http ones, just define them in
> system.properties.
>
> The HTTP Samplers also have per-sampler proxy settings, but I suspect
> those won't be suitable as the redirect would be processed using the
> same settingsas the original connection.
>
> >> I'll try it.
> >> Another question is, whether it's possible to overwrite the HTTP Request
> >> proxy behavior using plugin or something?
> >>
> >> Thanks,
> >> Stas.
> >>
> >>
> >> On Fri, Aug 2, 2013 at 1:31 AM, Deepak Shetty <sh...@gmail.com>
> wrote:
> >>
> >>> All options are here
> >>> http://docs.oracle.com/javase/6/docs/technotes/guides/net/proxies.html
> >>> https is separate to http so what problem are you facing?
> >>>
> >>>
> >>> On Thu, Aug 1, 2013 at 9:57 AM, Stas Obydionnov <st...@gmail.com>
> >>> wrote:
> >>>
> >>> > Hi all,
> >>> > I'm a new to Jmeter and I have a question:
> >>> > Jmeter allows to configure proxy for HTTP Request (not proxy for
> >>> recording,
> >>> > regular one).
> >>> > This proxy apply for both protocols, HTTP and HTTPS, I need it to
> apply
> >>> > only to HTTP, but HTTPS should go directly.
> >>> > Is it possible?
> >>> > Thanks.
> >>> > Stas.
> >>> >
> >>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>
>
Re: Proxing only HTTP traffic.
Posted by sebb <se...@gmail.com>.
On 2 August 2013 09:24, sebb <se...@gmail.com> wrote:
> On 2 August 2013 06:13, Stas Obydionnov <st...@gmail.com> wrote:
>> Thank you all!
>> What I'm trying to do is load the proxy server we are developing, sometimes
>> proxy intercepts the request and redirects it to some other HTTP server,
>> and this redirection is to HTTPS. What I need is that this request will go
>> directly, not through proxy.
>> The problem is, that I do not access this HTTP server directly from
>> Jmeter's HTTP request, but as a result of redirection (302).
>>
>> So the only possible solution maybe the use of the Java native proxy
>> proposed by Deepak.
>
> I don't think that's what he meant.
>
> The JMeter -H and -P parameters set both http.proxyHost/Port and
> https.proxyHost/Port system properties.
> So if you only want to set the http ones, just define them in system.properties.
The HTTP Samplers also have per-sampler proxy settings, but I suspect
those won't be suitable as the redirect would be processed using the
same settingsas the original connection.
>> I'll try it.
>> Another question is, whether it's possible to overwrite the HTTP Request
>> proxy behavior using plugin or something?
>>
>> Thanks,
>> Stas.
>>
>>
>> On Fri, Aug 2, 2013 at 1:31 AM, Deepak Shetty <sh...@gmail.com> wrote:
>>
>>> All options are here
>>> http://docs.oracle.com/javase/6/docs/technotes/guides/net/proxies.html
>>> https is separate to http so what problem are you facing?
>>>
>>>
>>> On Thu, Aug 1, 2013 at 9:57 AM, Stas Obydionnov <st...@gmail.com>
>>> wrote:
>>>
>>> > Hi all,
>>> > I'm a new to Jmeter and I have a question:
>>> > Jmeter allows to configure proxy for HTTP Request (not proxy for
>>> recording,
>>> > regular one).
>>> > This proxy apply for both protocols, HTTP and HTTPS, I need it to apply
>>> > only to HTTP, but HTTPS should go directly.
>>> > Is it possible?
>>> > Thanks.
>>> > Stas.
>>> >
>>>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org
Re: Proxing only HTTP traffic.
Posted by sebb <se...@gmail.com>.
On 2 August 2013 06:13, Stas Obydionnov <st...@gmail.com> wrote:
> Thank you all!
> What I'm trying to do is load the proxy server we are developing, sometimes
> proxy intercepts the request and redirects it to some other HTTP server,
> and this redirection is to HTTPS. What I need is that this request will go
> directly, not through proxy.
> The problem is, that I do not access this HTTP server directly from
> Jmeter's HTTP request, but as a result of redirection (302).
>
> So the only possible solution maybe the use of the Java native proxy
> proposed by Deepak.
I don't think that's what he meant.
The JMeter -H and -P parameters set both http.proxyHost/Port and
https.proxyHost/Port system properties.
So if you only want to set the http ones, just define them in system.properties.
> I'll try it.
> Another question is, whether it's possible to overwrite the HTTP Request
> proxy behavior using plugin or something?
>
> Thanks,
> Stas.
>
>
> On Fri, Aug 2, 2013 at 1:31 AM, Deepak Shetty <sh...@gmail.com> wrote:
>
>> All options are here
>> http://docs.oracle.com/javase/6/docs/technotes/guides/net/proxies.html
>> https is separate to http so what problem are you facing?
>>
>>
>> On Thu, Aug 1, 2013 at 9:57 AM, Stas Obydionnov <st...@gmail.com>
>> wrote:
>>
>> > Hi all,
>> > I'm a new to Jmeter and I have a question:
>> > Jmeter allows to configure proxy for HTTP Request (not proxy for
>> recording,
>> > regular one).
>> > This proxy apply for both protocols, HTTP and HTTPS, I need it to apply
>> > only to HTTP, but HTTPS should go directly.
>> > Is it possible?
>> > Thanks.
>> > Stas.
>> >
>>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org
Re: Proxing only HTTP traffic.
Posted by Stas Obydionnov <st...@gmail.com>.
Thank you all!
What I'm trying to do is load the proxy server we are developing, sometimes
proxy intercepts the request and redirects it to some other HTTP server,
and this redirection is to HTTPS. What I need is that this request will go
directly, not through proxy.
The problem is, that I do not access this HTTP server directly from
Jmeter's HTTP request, but as a result of redirection (302).
So the only possible solution maybe the use of the Java native proxy
proposed by Deepak.
I'll try it.
Another question is, whether it's possible to overwrite the HTTP Request
proxy behavior using plugin or something?
Thanks,
Stas.
On Fri, Aug 2, 2013 at 1:31 AM, Deepak Shetty <sh...@gmail.com> wrote:
> All options are here
> http://docs.oracle.com/javase/6/docs/technotes/guides/net/proxies.html
> https is separate to http so what problem are you facing?
>
>
> On Thu, Aug 1, 2013 at 9:57 AM, Stas Obydionnov <st...@gmail.com>
> wrote:
>
> > Hi all,
> > I'm a new to Jmeter and I have a question:
> > Jmeter allows to configure proxy for HTTP Request (not proxy for
> recording,
> > regular one).
> > This proxy apply for both protocols, HTTP and HTTPS, I need it to apply
> > only to HTTP, but HTTPS should go directly.
> > Is it possible?
> > Thanks.
> > Stas.
> >
>
Re: Proxing only HTTP traffic.
Posted by Deepak Shetty <sh...@gmail.com>.
All options are here
http://docs.oracle.com/javase/6/docs/technotes/guides/net/proxies.html
https is separate to http so what problem are you facing?
On Thu, Aug 1, 2013 at 9:57 AM, Stas Obydionnov <st...@gmail.com> wrote:
> Hi all,
> I'm a new to Jmeter and I have a question:
> Jmeter allows to configure proxy for HTTP Request (not proxy for recording,
> regular one).
> This proxy apply for both protocols, HTTP and HTTPS, I need it to apply
> only to HTTP, but HTTPS should go directly.
> Is it possible?
> Thanks.
> Stas.
>