Highlighted
Respected Contributor.
Respected Contributor.
347 views

Send TCP request in LoadRunner

I am sending a request to server using JMeter TCP sampler I am able to see correct response from the server. Also checked in server logs the logs contains only the body data I'm sending without any headers.

But when I tried to create the request in LR(web HTTP/HTML protocol) using web_custom_request shown as below,

web_custom_request("web_custom_request",
        "URL=http://a.b.c.d:1234",
        "Method=POST",
        "Body=<XML><MessageType>...</XML>", LAST);

I'm getting error response for the above request. After checking into server logs the headers are also present due to which server gave an error response.

Request captured in server log (JMeter😞

<XML><MessageType>...</XML>

Request captured in server log (LoadRunner😞

POST / HTTP/1.1

Content-Type: application/x-www-form-urlencoded

Cache-Control: no-cache

User-Agent: Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; Trident/6.0)

Accept: */*

Connection: close

Host: 10.16.241.25:6129

Content-Length: 721

 <XML><MessageType>...</XML>

Please suggest me how can I send the request to the server without any headers.

*NOTE: The protocol used is TCP for client-server

0 Likes
2 Replies
Highlighted
New Member.

Re: Send TCP request in LoadRunner

Hi,

 

is the problem solved ? If yes, can you please let me know the solution.

 

Thanks

0 Likes
Highlighted
Acclaimed Contributor.. Acclaimed Contributor..
Acclaimed Contributor..

Re: Send TCP request in LoadRunner

This was a cross post of the thread, see there for continuing discussion.

Signature:
Reward community members who take time to respond and help.
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.