Jump to content


Photo

Howto save profiles with uncompressed content (gzip=false)?

gzip uncompressed uncompress

  • Please log in to reply
6 replies to this topic

#1 NikiMouse

NikiMouse

    Newbie

  • Members
  • Pip
  • 8 posts

Posted 05 December 2016 - 09:08 AM

Hi all,

because I can't find & replace my session ID part within the requests (POST request body) I want to do it with the help of Notepad++. For that I open the .wpp file with the editor to do the search & replace action. But the content is compresses, so I can't do that replacing.

 

My question is: How can I deactivate the content compression (gzip=false)?

 

.wpp-part of my interest: <binRequestHeader base64="1" gzip="TRUE">

 

My idea is:

1. save the profile with decompressed content

2. search & replace the binary string with my variable and save the file

3. load the profile with WAPT Pro and activate the compression

 

I work with http-POST requests and binary content (hessian protocol).

 

What is the best procedure to do that?

 

Thanks,

Niko



#2 Sergei Leonov

Sergei Leonov

    Advanced Member

  • Administrators
  • PipPipPip
  • 650 posts

Posted 06 December 2016 - 10:59 AM

We have added Find & Replace for HEX view.

You can download the latest build from http://www.loadtesti...PTPro4.3_64.zip


Sergei Leonov
WAPT Project Manager
SoftLogica LLC

Office: +7-383-335-6692
Toll-free: 1-888-364-6797 (for US only)
Time zone GMT +6, EST +11
E-mail: support@loadtestingtool.com
http://www.loadtestingtool.com

#3 NikiMouse

NikiMouse

    Newbie

  • Members
  • Pip
  • 8 posts

Posted 06 December 2016 - 09:51 PM

Hi Sergei,

thank you for that helpful functionality. It works fine with my script.

 

But back to my question: would it be possible to save the script without compression? I wonder why the script file contains gzip="TRUE".

 

Thanks again.

Niko



#4 Sergei Leonov

Sergei Leonov

    Advanced Member

  • Administrators
  • PipPipPip
  • 650 posts

Posted 08 December 2016 - 05:27 AM

binRequestHeader are originally recorded headers, you can't change them.

If you want to change a some header of request, you need to change data in Profile/Main/Document/Request/Headers/Header.


Sergei Leonov
WAPT Project Manager
SoftLogica LLC

Office: +7-383-335-6692
Toll-free: 1-888-364-6797 (for US only)
Time zone GMT +6, EST +11
E-mail: support@loadtestingtool.com
http://www.loadtestingtool.com

#5 NikiMouse

NikiMouse

    Newbie

  • Members
  • Pip
  • 8 posts

Posted 09 December 2016 - 01:53 PM

OK, until now I understood, that:

- "binRequestHeader" contains recorded data

- "mimeRequestHeader" contains my request data for the header (request header)

But where is my binary request data of a http-POST stored?

 

I can see other potential places for the POST request data:

- <binRequestBody base64="1" gzip="TRUE">...

- <BinaryData Version="1" modified="TRUE"><text base64="65001" gzip="TRUE">...

 

Please note that both places are compressed.

Regards, Niko



#6 NikiMouse

NikiMouse

    Newbie

  • Members
  • Pip
  • 8 posts

Posted 19 December 2016 - 10:31 AM

Hello Sergei,

would you answer my question please?

Thank you,

Niko



#7 Sergei Leonov

Sergei Leonov

    Advanced Member

  • Administrators
  • PipPipPip
  • 650 posts

Posted 23 December 2016 - 09:21 AM

Hello Niko,

Sorry for the delay.

"binRequestBody" section contains an originally recorded request.

If you want to change the request you need to modify BinaryData section.

If the request was never modified in WAPT you need to add BinaryData section to the request manually.

We do not plan to add a possibility to save unzipped data, so you need to unzip and unbase64 request data manually.


Sergei Leonov
WAPT Project Manager
SoftLogica LLC

Office: +7-383-335-6692
Toll-free: 1-888-364-6797 (for US only)
Time zone GMT +6, EST +11
E-mail: support@loadtestingtool.com
http://www.loadtestingtool.com




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users