Showing results for 
Search instead for 
Did you mean: 

Mock Service: mockRequest.requestContent is NULL (HTTP PUT)


Re: Mock Service: mockRequest.requestContent is NULL (HTTP PUT)

HI @vikititor,


In the Dispatch script, a request content can be retrieved as follows:


In the latest ReadyAPI version it works for POST, PUT and the other supported HTTP methods.


Please check the screenshot:



Please double-check your configuration and if it still does not work for you as expected, submit a new support case:


Customer Care Team

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.↓↓↓↓↓

Re: Mock Service: mockRequest.requestContent is NULL (HTTP PUT)

OK, OK.. on this place dispacher script this works... 

But before I will send the response, I need create it.. How to transform readed value from this script to the response script? 


Because I just tryed on response script, where this was really not working. 

This is my needs. 

* read request send to MOCK server, parse some values

* prepare response to AUT using this values

* solution must be thread save, because my AUT sends a lot of requests per seccond. I can not use properties..

Community Hero

Re: Mock Service: mockRequest.requestContent is NULL (HTTP PUT)



Have you seen my reply here: ?
Does it help?


  /Alex [Community Hero]
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
New Here?
Join us and watch the welcome video:
Top Kudoed Authors