JavaScript must be enabled in order to use this site.Please enable JavaScript in your browser and refresh the page. Modifying the Request Body To modify the request body in the pre-processing stage employ the content source and content producer to read from and write to the HTTP request. Procedure Get Content source from request. Get input stream from Content source. Read content from the input stream. Modify the content. Create a content producer. Set the request body to the created content producer. ContentSource body = event.getCallContext().getRequest().getBody(); final InputStream inputStream = body.getInputStream() ; //use input stream to read content //modify content httpReq.setBody(new ContentProducer() { //set new content body ......... public void writeTo(OutputStream out) throws IOException { out.write("modified content") out.flush(); out.close(); } }); Note: Refer to the working code in examples/ModifyRequestBody.java. Copyright © Cloud Software Group, Inc. All rights reserved.