You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by "Getschel, Lewis" <C-...@charter.com> on 2021/05/14 18:46:50 UTC

Missing HTTP headers on Linux but not on Windows10

Hello everyone- I'm new to JMeter, but have been using Linux for 16+ years.

I'm trying to test DNS over HTTP (DoH). In its simplest form, it's just the following cURL:
curl -s -H 'accept: application/dns-message' https://dns.google/dns-query?dns=Vc8BAAABAAAAAAAAFXRlcnJ5ZGVhbnNkYW5jZXN0dWRpbwNjb20AAAEAAQ  | hexdump -C
The hex output contains the domain name "terrydeansdancestudio.com" .  Real simple.

I imported that and jmeter built a test plan. I've since built my own several times, all basically have the same results. On Linux (CentOS8), jmeter doesn't include the header on most of the loops. On Win10 it DOES include the headers for every loop.

I created 2 images showing each level of the test plan and the output issue:
https://www.nyx.net/~lgetsche/WorkingJMeterWin10.jpg	All lines in Results-Tree show successful and have the same header
https://www.nyx.net/~lgetsche/BrokenJMeterCentOS8.jpg	Left side shows 1 successful, Right side shows failed, and missing header.

The problem was introduced when I inserted the CSV Data Set Config. For a sanity check, I created the same test plan without CSV, (but had to adjust the http-request to use a static path with the dns=Vc8BAAA... as the curl example shows).
The thread group loops any number of times properly. Then I inserted the CSV Data Set Config, and changed the request to use the variable. That's when it broke.

I'm using the same JMeter 5.4.1.zip file on both Linux and Windows. I copied the .jmx file from Win10 to Linux (only changing the path of the .csv file)
I downloaded the 5.2.1 and tried that on Linux, but had same result.
My java is current:     $ rpm -qa | grep -i java
tzdata-java-2021a-1.el8.noarch
java-1.8.0-openjdk-1.8.0.292.b10-0.el8_3.x86_64
javapackages-filesystem-5.3.0-1.module_el8.0.0+11+5b8c10bd.noarch
java-1.8.0-openjdk-headless-1.8.0.292.b10-0.el8_3.x86_64

Eventually I'll _HAVE_ to use my Linux test lab to test properly. My final goal may need several jmeter servers bombarding a load balancer for DoH servers with several million(s) of requests.

Any suggestions why Linux doesn't include the required Header field?
Thanks. -Lewis

E-MAIL CONFIDENTIALITY NOTICE: 
The contents of this e-mail message and any attachments are intended solely for the addressee(s) and may contain confidential and/or legally privileged information. If you are not the intended recipient of this message or if this message has been addressed to you in error, please immediately alert the sender by reply e-mail and then delete this message and any attachments. If you are not the intended recipient, you are notified that any use, dissemination, distribution, copying, or storage of this message or any attachment is strictly prohibited.


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


RE: [EXTERNAL] Re: Missing HTTP headers on Linux but not on Windows10

Posted by "Getschel, Lewis" <C-...@charter.com>.
Oh My Goodness!
Thank You Felix-
Wow, I never expected that. Although I DO know how those spaces got there, originally these base64url's had been padded with "=", which needed to be removed. Unknowingly, I used tr to change those = to spaces, which I've done many times in the past for other scripts). Since it was the only "field" I assumed it would be OK, obviously it wasn't this time.
Very much appreciated.
Lewis

-----Original Message-----
From: Felix Schumacher <fe...@internetallee.de> 
Sent: Saturday, May 15, 2021 6:19 AM
To: user@jmeter.apache.org
Subject: Re: [EXTERNAL] Re: Missing HTTP headers on Linux but not on Windows10

Am 14.05.21 um 21:57 schrieb Getschel, Lewis:
> Thanks for quick response. 
> Sure, here are the csv and the jmx file I'm using:
> https://www.nyx.net/~lgetsche/short-encoded.csv
> https://www.nyx.net/~lgetsche/newWindows01.jmx
> Of course the path to the short-encoded.csv file will need adjustment.
> FWIW: These came from my linux box, but I don't think I'm hitting a cr/lf issue, since it happens even when I build the plan on each machine. The csv was created by a python script on linux.

The CSV file has spaces at the end of some lines. When I removed the spaces, all samples worked successfully.

I don't know, why windows works, when linux doesn't.

Felix

>
> -----Original Message-----
> From: Felix Schumacher <fe...@internetallee.de>
> Sent: Friday, May 14, 2021 1:14 PM
> To: user@jmeter.apache.org
> Subject: [EXTERNAL] Re: Missing HTTP headers on Linux but not on 
> Windows10
>
> Hi Lewis,
>
> can you post a minimal example plan, that exhibits the described behaviour? I created one for myself with the given curl command as starting point and can't reproduce the problem under ubuntu using a current snapshot of JMeter and Java 1.8.
>
> I don't think it should matter, but I would use a tar.gz instead of a zip download of JMeter for the linux versions. The zip has some files with CR/LF instead of LF in it.
>
> Have you checked the line endings of the CSV file?
>
> Felix
>
> E-MAIL CONFIDENTIALITY NOTICE: 
> The contents of this e-mail message and any attachments are intended solely for the addressee(s) and may contain confidential and/or legally privileged information. If you are not the intended recipient of this message or if this message has been addressed to you in error, please immediately alert the sender by reply e-mail and then delete this message and any attachments. If you are not the intended recipient, you are notified that any use, dissemination, distribution, copying, or storage of this message or any attachment is strictly prohibited.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org

E-MAIL CONFIDENTIALITY NOTICE: 
The contents of this e-mail message and any attachments are intended solely for the addressee(s) and may contain confidential and/or legally privileged information. If you are not the intended recipient of this message or if this message has been addressed to you in error, please immediately alert the sender by reply e-mail and then delete this message and any attachments. If you are not the intended recipient, you are notified that any use, dissemination, distribution, copying, or storage of this message or any attachment is strictly prohibited.

Re: [EXTERNAL] Re: Missing HTTP headers on Linux but not on Windows10

Posted by Felix Schumacher <fe...@internetallee.de>.
Am 14.05.21 um 21:57 schrieb Getschel, Lewis:
> Thanks for quick response. 
> Sure, here are the csv and the jmx file I'm using:
> https://www.nyx.net/~lgetsche/short-encoded.csv
> https://www.nyx.net/~lgetsche/newWindows01.jmx
> Of course the path to the short-encoded.csv file will need adjustment.
> FWIW: These came from my linux box, but I don't think I'm hitting a cr/lf issue, since it happens even when I build the plan on each machine. The csv was created by a python script on linux.

The CSV file has spaces at the end of some lines. When I removed the
spaces, all samples worked successfully.

I don't know, why windows works, when linux doesn't.

Felix

>
> -----Original Message-----
> From: Felix Schumacher <fe...@internetallee.de> 
> Sent: Friday, May 14, 2021 1:14 PM
> To: user@jmeter.apache.org
> Subject: [EXTERNAL] Re: Missing HTTP headers on Linux but not on Windows10
>
> Hi Lewis,
>
> can you post a minimal example plan, that exhibits the described behaviour? I created one for myself with the given curl command as starting point and can't reproduce the problem under ubuntu using a current snapshot of JMeter and Java 1.8.
>
> I don't think it should matter, but I would use a tar.gz instead of a zip download of JMeter for the linux versions. The zip has some files with CR/LF instead of LF in it.
>
> Have you checked the line endings of the CSV file?
>
> Felix
>
> E-MAIL CONFIDENTIALITY NOTICE: 
> The contents of this e-mail message and any attachments are intended solely for the addressee(s) and may contain confidential and/or legally privileged information. If you are not the intended recipient of this message or if this message has been addressed to you in error, please immediately alert the sender by reply e-mail and then delete this message and any attachments. If you are not the intended recipient, you are notified that any use, dissemination, distribution, copying, or storage of this message or any attachment is strictly prohibited.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org


RE: [EXTERNAL] Re: Missing HTTP headers on Linux but not on Windows10

Posted by "Getschel, Lewis" <C-...@charter.com>.
Thanks for quick response. 
Sure, here are the csv and the jmx file I'm using:
https://www.nyx.net/~lgetsche/short-encoded.csv
https://www.nyx.net/~lgetsche/newWindows01.jmx
Of course the path to the short-encoded.csv file will need adjustment.
FWIW: These came from my linux box, but I don't think I'm hitting a cr/lf issue, since it happens even when I build the plan on each machine. The csv was created by a python script on linux.

-----Original Message-----
From: Felix Schumacher <fe...@internetallee.de> 
Sent: Friday, May 14, 2021 1:14 PM
To: user@jmeter.apache.org
Subject: [EXTERNAL] Re: Missing HTTP headers on Linux but not on Windows10

Hi Lewis,

can you post a minimal example plan, that exhibits the described behaviour? I created one for myself with the given curl command as starting point and can't reproduce the problem under ubuntu using a current snapshot of JMeter and Java 1.8.

I don't think it should matter, but I would use a tar.gz instead of a zip download of JMeter for the linux versions. The zip has some files with CR/LF instead of LF in it.

Have you checked the line endings of the CSV file?

Felix

E-MAIL CONFIDENTIALITY NOTICE: 
The contents of this e-mail message and any attachments are intended solely for the addressee(s) and may contain confidential and/or legally privileged information. If you are not the intended recipient of this message or if this message has been addressed to you in error, please immediately alert the sender by reply e-mail and then delete this message and any attachments. If you are not the intended recipient, you are notified that any use, dissemination, distribution, copying, or storage of this message or any attachment is strictly prohibited.

Re: Missing HTTP headers on Linux but not on Windows10

Posted by Felix Schumacher <fe...@internetallee.de>.
Hi Lewis,

can you post a minimal example plan, that exhibits the described
behaviour? I created one for myself with the given curl command as
starting point and can't reproduce the problem under ubuntu using a
current snapshot of JMeter and Java 1.8.

I don't think it should matter, but I would use a tar.gz instead of a
zip download of JMeter for the linux versions. The zip has some files
with CR/LF instead of LF in it.

Have you checked the line endings of the CSV file?

Felix

Am 14.05.21 um 20:46 schrieb Getschel, Lewis:
> Hello everyone- I'm new to JMeter, but have been using Linux for 16+ years.
>
> I'm trying to test DNS over HTTP (DoH). In its simplest form, it's just the following cURL:
> curl -s -H 'accept: application/dns-message' https://dns.google/dns-query?dns=Vc8BAAABAAAAAAAAFXRlcnJ5ZGVhbnNkYW5jZXN0dWRpbwNjb20AAAEAAQ  | hexdump -C
> The hex output contains the domain name "terrydeansdancestudio.com" .  Real simple.
>
> I imported that and jmeter built a test plan. I've since built my own several times, all basically have the same results. On Linux (CentOS8), jmeter doesn't include the header on most of the loops. On Win10 it DOES include the headers for every loop.
>
> I created 2 images showing each level of the test plan and the output issue:
> https://www.nyx.net/~lgetsche/WorkingJMeterWin10.jpg	All lines in Results-Tree show successful and have the same header
> https://www.nyx.net/~lgetsche/BrokenJMeterCentOS8.jpg	Left side shows 1 successful, Right side shows failed, and missing header.
>
> The problem was introduced when I inserted the CSV Data Set Config. For a sanity check, I created the same test plan without CSV, (but had to adjust the http-request to use a static path with the dns=Vc8BAAA... as the curl example shows).
> The thread group loops any number of times properly. Then I inserted the CSV Data Set Config, and changed the request to use the variable. That's when it broke.
>
> I'm using the same JMeter 5.4.1.zip file on both Linux and Windows. I copied the .jmx file from Win10 to Linux (only changing the path of the .csv file)
> I downloaded the 5.2.1 and tried that on Linux, but had same result.
> My java is current:     $ rpm -qa | grep -i java
> tzdata-java-2021a-1.el8.noarch
> java-1.8.0-openjdk-1.8.0.292.b10-0.el8_3.x86_64
> javapackages-filesystem-5.3.0-1.module_el8.0.0+11+5b8c10bd.noarch
> java-1.8.0-openjdk-headless-1.8.0.292.b10-0.el8_3.x86_64
>
> Eventually I'll _HAVE_ to use my Linux test lab to test properly. My final goal may need several jmeter servers bombarding a load balancer for DoH servers with several million(s) of requests.
>
> Any suggestions why Linux doesn't include the required Header field?
> Thanks. -Lewis
>
> E-MAIL CONFIDENTIALITY NOTICE: 
> The contents of this e-mail message and any attachments are intended solely for the addressee(s) and may contain confidential and/or legally privileged information. If you are not the intended recipient of this message or if this message has been addressed to you in error, please immediately alert the sender by reply e-mail and then delete this message and any attachments. If you are not the intended recipient, you are notified that any use, dissemination, distribution, copying, or storage of this message or any attachment is strictly prohibited.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>