#602 HTTP Test step

open
nobody
None
5
2011-03-07
2011-03-07
Rafa AR
No

Hi,

In my opinion, the following behavior is wrong.

Product: soapUI 3.6
Platform: Windows XP
JRE: -

Test step type: HTTP

It's not possible to send an empty string value when using the QueryString in a HTTP request. When a parameter in the QueryString has the empty string value, the parameter itself is ignored (not sent), which at the end is received as null at the web server.

Works fine if you don't use the QueryString and send the parameters in the HTTP body. For example

toDo=

Regards

Discussion

  • Rafa AR
    Rafa AR
    2011-03-07

     
    Attachments
  • Dain Nilsson
    Dain Nilsson
    2011-03-07

    You're right this does seem to be the case. There is a workaround when using the RestRequest instead of the HttpRequest. When doing this you can edit the Parameter (either under the Resource or the Method) and set it to be required. When set as required the parameter will always be sent, even if empty.