REST Post Method changed to GET automatically when certain parameters are empty or null
I am using SOAP UI NG Trial Version
When I Submit Request for POST method with empty or null parameters, then the request is submitted as GET method.
Firstname : empty / null
Lastname : empty / null\
address1 : empty / null\
address2 : empty / null\
city : empty / null\
stateselect : empty / null\
zipcode : empty / null\
birthdatemonth : empty / null\
birthdateday : empty / null\
birthdateyear : empty / null\
gender : empty / null\
emailaddress : empty / null\
client_id : skldhflkafkla
state : test
Is there anything I am doing wrong or is it bug in SOAP UI NG Pro, the same SOAP UI project works in SOAP UI Free version.
Please let me know your inputs
Here's the reply from Support
Hello, Under the Project tab configure the request as a POST instead of a GET. When you pass Sample requests into a testcase they still take the config from their parent in the projects tab. Regards, Temil
But I already have the request on POST Method on the Project tab, but it still does a GET Method on the Raw Request.
After looking further on my Project, the POST Method Request will have a redirect response.
By default the Request Properties will have Follow Redirects = true
I changed that property to false, and VOILA! it changes into Post.
Please see screenshot below
I don't really have a clear answer on this but I guess on my project, if the POST Request will respond into a redirect, I just have to set the Follow Redirects to false to ensure that the request will do a Post.
I don't know if this really helps, but these solves my problem