Forum Discussion
dseel
15 years agoContributor
No, this is not what I was expected.
I have valid cases where a POST or PUT request is made that has *no* body at all (content length is zero). The content type might be application/x-www-form-urlencoded or it might be something else. But either way, I want the Mock service to accept a POST/PUT request that has no content and not reply with any error. Instead, the MockService should get into the OnRequest script and handle things normally, except the request content (mockRequest.getRequestContent()) would be null.
Thanks,
Dave
I have valid cases where a POST or PUT request is made that has *no* body at all (content length is zero). The content type might be application/x-www-form-urlencoded or it might be something else. But either way, I want the Mock service to accept a POST/PUT request that has no content and not reply with any error. Instead, the MockService should get into the OnRequest script and handle things normally, except the request content (mockRequest.getRequestContent()) would be null.
Thanks,
Dave