Provide callback for posting data to the request object

Add a callback for getting the request object so data could be posted.