My task is to send Via LR, XML after he was Compress to GZIP to the response server by http,

26 views
Skip to first unread message

Eyal Greenblatt

unread,
Jan 28, 2010, 2:51:07 AM1/28/10
to LoadRunner
Hi


My task is to send Via LR, XML after he was Compress to GZIP to the
response server by http,

I’m trying to send the following string LR String Value,

The following value is:

" x\x9c\xc5V\xc9n\xdb0\x14\xfc\x15Cw\x8a\x92\x9d\xa0\xadA+\x05\xba\x9c
\xd2K\xd3\x16=\x040h\x8a\x92\xd9R\xa4\xc0%r\xfa\xf5}\xda\xac8\x91b'E
\xd2\x8b\x01S3\xc3y\xe4\xf0\x91\xe4bW\xc8\xd9\r7Vh\xb5\n\xe20\nf
\x01\x9d\n\x95\xaf\x82\xef\xdf>\xa3\xb7\xc1EB2/%bRp\xe5\x10\xd3*
\x13\xb97\xd4\x01e\x06teW\xc1\xd6\xb9r\x89\xb1g!u.d\xba\xc0ch<
\xa9\x13\xb4BK`\xc3\x87\xa2\xa8\xcd\x9c\xa8\xd9\xc2{\x81\x9d\x15{fUUa
\xb5\x08\xb5\xc9\xf1<\x8ab\xfc\xf3\xcb\xe5\x15\xdb\xf2\x82"\xa1\xac
\xa3\x8aq`Y\xb1\xb4\xcd\xe0\xa5f\x8d\xe0\xbf\x173\x0b\xc3\xeb\xeb\x9dM
\xe1'-\xd6\x9e\xad[\xd0\x87\xbb\x98u\xc3\xfe\x11\xaf#\x04\xde\xde\xc5Q|
\x16\x02%H\x08\xb5V3\xd1\x80\x12\x02\x93\x97T\xdd\xa2T\xb3\x84\x94\xd4m
\x13\x18il\x81\xbbQW\xb9\xd4\x1b*\xf1\x1d"\xc1\r\x910oL\x8d\xe7\x8e
\xe6I|\x16\x9d\x13|0D\xf0\xc1l\xder\xf3\x84yk\xb8\xc5V\x94\xcb
\xb4\xe0\xa6\xe0\xd2:.\xd4{\xa0xFe\xb9\xa5\xcdB\xf6\xa2\xe3\x9e\x16go
\x1ex\x1al\xe0\xd1\x95Q\xb4\xe03\xca\xe4*0\x9c\xa6\xdc\xc0\n\xdeP
\xe9yRGI(\xc7M%,'\xb8\x1d\x1cj\xacy\xb0\xd8R\xea\n\xddh\xc18\x02\x9b
\xd2\x8eJ9\xe3\x07\x05CU^3\xf7I]r\xe5\xa1d\xea\xb4i\x90\xcb\x8c\xcaz
\xc6q\x04\xc1\x9d"

XML which was compress by GZIP algorithm,
Once I’m trying to sent the above string
rc = lrs_send("socket1","buf1", LrsLastArg);
I’m getting the following error: " Error : Unable to translate buffer
to socket1. Error code : 9013."

I try to add to each \x-> \\x now the string was send successfully but
the wireshark did not know how to translate the Gzip string and I’m
getting the following error from the wireshark,

content-encoded entity body (gzip):389 bytes [error:decompression
failed]

Is someone have any solution how do I send Compress Gzip string via
loadrunner using win socket protocol.

Regards

Eyal

John Crunk

unread,
Jan 28, 2010, 1:34:42 PM1/28/10
to lr-loa...@googlegroups.com
Looks like you have the wrong translation table

John Crunk Ph.D ABD
Sent from my iPhone

On Jan 28, 2010, at 2:51 AM, Eyal Greenblatt
<eyalgre...@gmail.com> wrote:

> --
> You received this message because you are subscribed to the Google
> "LoadRunner" group.
> To post to this group, send email to LR-Loa...@googlegroups.com
> To unsubscribe from this group, send email to
> LR-LoadRunne...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/LR-LoadRunner?hl=en

chaitanya bhatt

unread,
Jan 28, 2010, 1:49:21 PM1/28/10
to lr-loa...@googlegroups.com
Since you mentioned that a XML body is sent through the request I presume you are dealing with a specific web-request. I think you're dealing with a multi-protocol kind of a scenario here. Why don't you try using Windows Socket + Web Http/Html protocol. This way your Web protocol will automatically handle all the gzip compression for you.

Chaitanya Bhatt
Website: http://www.performancecompetence.com

Reply all
Reply to author
Forward
0 new messages