You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Alex Gavrilov <A....@F5.com> on 2011/07/09 03:37:36 UTC

Cookies aren't inserted into HTTP request with IPv6 Host header

Hello Jmeter Users!

I'm trying to use Jmeter on a system with IPv6 addressing and am facing this issue:
HTTP Cookies aren't inserted in the HTTP request.
Using the same jmx-test, but with IPv4 addressing, everything works fine.
The HTTP Requests are pretty much the same except for the Host header:
IPv4:
Host: 172.31.61.41:8123
IPv6:
Host: [2002::12]:8123

It seems like there is a bug in the way cookies are stored/retrieved for IPv6 hosts.
Is there any workaround to make Jmeter work with IPv6?

Note: I tried changing the Cookie Policy to all the possible values (rfc2965, etc.). It didn't help.

With regards, Alex.


RE: Cookies aren't inserted into HTTP request with IPv6 Host header

Posted by Alex Gavrilov <A....@F5.com>.
I tried to disable check - it didn't help.
The possible workaround is to use symbolic name for the host instead of IP address.
It seems the bug is related with square brackets.

Here is the requested info.

IPv4:
--------
GET /xxx.xxx HTTP/1.1
Connection: keep-alive
User-Agent: Java/1.6.0_14
Host: 172.31.61.44:8123
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2


--------
HTTP/1.1 200 OK
Date: Fri, 08 Jul 2011 23:17:18 GMT
Content-Length: 659
Content-Type: text/html; charset=utf-8
Set-Cookie: TS48550d=7c55fc5f609f3263a19d5bf56ba87e4adc1f801ce2a34e724e1744d9; Path=/
Set-Cookie: TS48550d_1=bf7c6f914d6181372dfe392362bf8dc4dc1f801ce2a34e7200c6c833d9e562f258; Path=/

<html><head><style>
    TABLE, TD { border: 3px solid black; border-collapse: collapse }
</style></head>
<body><table>
    <TR><TD>path        </TD><TD>     /xxx.xxx</TD></TR>
    <TR><TD>query       </TD><TD>     </TD></TR>
    <TR><TD>method      </TD><TD>     GET</TD></TR>
    <TR><TD>cookie      </TD><TD>     </TD></TR>
    <TR><TD>content_type</TD><TD>     </TD></TR>
    <TR><TD>content     </TD><TD>     </TD></TR>
    <TR><TD>as_string   </TD><TD><PRE>GET /xxx.xxx HTTP/1.1
Connection: keep-alive
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Host: 172.31.61.44:8123
User-Agent: Java/1.6.0_14

</PRE></TD></TR>
</table></body></html>

--------
GET /fff.zip HTTP/1.1
Connection: keep-alive
Cookie: TS48550d=7c55fc5f609f3263a19d5bf56ba87e4adc1f801ce2a34e724e1744d9; TS48550d_1=bf7c6f914d6181372dfe392362bf8dc4dc1f801ce2a34e7200c6c833d9e562f258
User-Agent: Java/1.6.0_14
Host: 172.31.61.44:8123
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2



IPv6:
--------
GET /xxx.xxx HTTP/1.1
Connection: keep-alive
User-Agent: Java/1.6.0_14
Host: [2002::12]:8123
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2


--------
HTTP/1.1 200 OK
Date: Fri, 08 Jul 2011 20:37:53 GMT
Content-Length: 657
Content-Type: text/html; charset=utf-8
Set-Cookie: TS48550d=d1f940e9b0d067b9e4d9b7870a3b76fed46c8da98c8b21124e171f7e; Path=/
Set-Cookie: TS48550d_1=f2ca831a9781d3a13d30c433d2d18d43d46c8da98c8b211200c6c833d9e562f258; Path=/

<html><head><style>
    TABLE, TD { border: 3px solid black; border-collapse: collapse }
</style></head>
<body><table>
    <TR><TD>path        </TD><TD>     /xxx.xxx</TD></TR>
    <TR><TD>query       </TD><TD>     </TD></TR>
    <TR><TD>method      </TD><TD>     GET</TD></TR>
    <TR><TD>cookie      </TD><TD>     </TD></TR>
    <TR><TD>content_type</TD><TD>     </TD></TR>
    <TR><TD>content     </TD><TD>     </TD></TR>
    <TR><TD>as_string   </TD><TD><PRE>GET /xxx.xxx HTTP/1.1
Connection: keep-alive
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Host: [2002::12]:8123
User-Agent: Java/1.6.0_14

</PRE></TD></TR>
</table></body></html>

--------
GET /fff.zip HTTP/1.1
Connection: keep-alive
User-Agent: Java/1.6.0_14
Host: [2002::12]:8123
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2

--------




-----Original Message-----
From: Deepak Shetty [mailto:shettyd@gmail.com] 
Sent: Friday, July 08, 2011 6:58 PM
To: JMeter Users List
Subject: Re: Cookies aren't inserted into HTTP request with IPv6 Host header

Probably more useful if you send the request/response headers for the
request that sets the cookies and the request headers for the next request
Also you could try to enable logs for the cookie manager , you might also
try not validating cookies
CookieManager.check.cookies=false (in jmeter.properties or equivalent)

regards
deepak

On Fri, Jul 8, 2011 at 6:37 PM, Alex Gavrilov <A....@f5.com> wrote:

> Hello Jmeter Users!
>
> I'm trying to use Jmeter on a system with IPv6 addressing and am facing
> this issue:
> HTTP Cookies aren't inserted in the HTTP request.
> Using the same jmx-test, but with IPv4 addressing, everything works fine.
> The HTTP Requests are pretty much the same except for the Host header:
> IPv4:
> Host: 172.31.61.41:8123
> IPv6:
> Host: [2002::12]:8123
>
> It seems like there is a bug in the way cookies are stored/retrieved for
> IPv6 hosts.
> Is there any workaround to make Jmeter work with IPv6?
>
> Note: I tried changing the Cookie Policy to all the possible values
> (rfc2965, etc.). It didn't help.
>
> With regards, Alex.
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Cookies aren't inserted into HTTP request with IPv6 Host header

Posted by Deepak Shetty <sh...@gmail.com>.
Probably more useful if you send the request/response headers for the
request that sets the cookies and the request headers for the next request
Also you could try to enable logs for the cookie manager , you might also
try not validating cookies
CookieManager.check.cookies=false (in jmeter.properties or equivalent)

regards
deepak

On Fri, Jul 8, 2011 at 6:37 PM, Alex Gavrilov <A....@f5.com> wrote:

> Hello Jmeter Users!
>
> I'm trying to use Jmeter on a system with IPv6 addressing and am facing
> this issue:
> HTTP Cookies aren't inserted in the HTTP request.
> Using the same jmx-test, but with IPv4 addressing, everything works fine.
> The HTTP Requests are pretty much the same except for the Host header:
> IPv4:
> Host: 172.31.61.41:8123
> IPv6:
> Host: [2002::12]:8123
>
> It seems like there is a bug in the way cookies are stored/retrieved for
> IPv6 hosts.
> Is there any workaround to make Jmeter work with IPv6?
>
> Note: I tried changing the Cookie Policy to all the possible values
> (rfc2965, etc.). It didn't help.
>
> With regards, Alex.
>
>