Forum Discussion

adrianc's avatar
adrianc
New Contributor
8 years ago
Solved

POST request - unable to control encoding

Hi,

 

I have a very basic POST request looking like this:

 

 

The problem is that I can't seem to control encoding this data ("12345"). My request will look like this, regardless of any used "Content-Type" header or "Encoding" property.

 

 

I have compared all settings with another colleague, everything is identical. Yet he gets a clean POST request, while I end up with the above.

Tested on SoapUI 5.2.1, 5.1.2 and ReadyAPI 1.9.0 with the same results.

Any help is appreciated.

 

Thank you,

/Adrian

 

 

  • adrianc's avatar
    adrianc
    8 years ago

    Yes, content type is "application/xml"

     

    I have found the solution, it's trivial yet it can give you headaches.

     

    Global Preferences >> HTTP Settings >> set "Request compression" to "None".

    Somehow it was set to "gzip" by default installation, hence the unwanted encoding in my requests.

2 Replies

  • rajpenumalli's avatar
    rajpenumalli
    Occasional Contributor

    Is your content type : "application/xml" as shown in picture?

    something else.

    -Raj

     

     

    • adrianc's avatar
      adrianc
      New Contributor

      Yes, content type is "application/xml"

       

      I have found the solution, it's trivial yet it can give you headaches.

       

      Global Preferences >> HTTP Settings >> set "Request compression" to "None".

      Somehow it was set to "gzip" by default installation, hence the unwanted encoding in my requests.