POST-ing data using Fiddler

Introduction

Composing requests in Fiddler is easy (just use the ‘Composer’ tab). However, by default, fiddler is set to do ‘GET’ requests – which is what a majority of users seem to be interested in testing. How about if you wanted to test say – a file upload? You would have to work with a POST request – and one that allowed you to upload (send) binary data. How does Fiddler accommodate this?

Fiddler POST

First, select the POST in the parsed ‘composer’ request window. Now that you are ready to POST, you need your binary data (the file you are trying to upload). Since it will be part of the request body (as opposed to the header), all you need to do is paste the binary contents of the file into the ‘request body’ area. The image below should help clarify these two options.

 

POSTing_in_Fiddler

Cloud Advisory Services | Security Advisory Services | Data Science Advisory and Research

Specializing in high volume web and cloud application architecture, Anuj Varma’s customer base includes Fortune 100 companies (dell.com, British Petroleum, Schlumberger).

All content on this site is original and owned by AdverSite Web Holdings, Inc. – the parent company of anujvarma.com. No part of it may be reproduced without EXPLICIT consent from the owner of the content.

Anuj Varma – who has written posts on Anuj Varma, Technology Architect.


Leave a Reply

Your email address will not be published. Required fields are marked *