Composing a request with Fiddler4

We can build up our own requests using Fiddler Composer, just click on the tab “Composer” which is between to “Autoresponder” and “Filters”. Now on the given panel you can write a header and a body, the body is used to set the contents of a post so if you are filling the body make sure you remember to select the “POST” method on the combo.

If you need to add a cookie, just add it on the header, a very good approach to this is to make a real request to the website you want to check and copy-paste its header/body, then modify what you need on the composer. That way you can make sure the request will work.

Once you are done preparing the request, just click “Execute” and it will be done, so far so good! Now let’s see a more in detail examples:

Composing a GET request

Probably the easiest to make, just add the URL including the querystring to the address field, make sure you select the GET at the method combo and the HTTP version is correct (HTTP 1.1 is just fine). Now you only need a header as this request won’t have any body.

Header example:

User-Agent: Fiddler
Host: localhost
Content-Type: text/xml; charset=utf-8
Cookie: __utma=111872281.1393243029.1394807100.5; __utmz=111872281.139029.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); signinmode=1; Plat=5; username=me&hash=; photos_first=0; geo_dialog=1; l_tracks=list; swipe_profiles=2409919%2&at=23DD04F66F907805A6C8344AA44F9; ASPSESSIONID=PHOFAFJLF

Composing a POST request

This one requires same stuff as previous though you probably don’t need to write the querystring and instead you write a body for it.
Body example:

name=ruben&surname=canton

Composing a POST request with XML

I used XML in this one as I was requesting a SOAP service, you only need to make sure you follow the standardized schema:

Body example:

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <MyElements><element>example</element></MyElements>
  </soap:Body>
</soap:Envelope>
Close Bitnami banner
Bitnami