Quantcast
Channel: Ruben Canton
Viewing all articles
Browse latest Browse all 94

Composing a request with Fiddler4

$
0
0

We can build up our own requests using Fiddler Composer, to use it just click on the tab “Composer” which is close to “Statistics” or “Inspectors”. 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.

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

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>

Once you are done preparing the request, just click “Execute” and it will be done, so far so good!


Viewing all articles
Browse latest Browse all 94

Trending Articles