Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use Fiddler 2 to compose a request?

I am using asp.net web api and I want to try to see if my method work. The way I see people do this alot is through fiddler. I am trying to do this myself but I can't get it to work.

I go to the composer tab and do this.

enter image description here

public IQueryable<FoodLogRecord> Get(string email)
{
    return null;
}

but I get a 404 back. I also put a break point in the method and it never goes in.

like image 760
chobo2 Avatar asked Jan 17 '13 21:01

chobo2


People also ask

How do I create a request in Fiddler?

To create a GET request inside Fiddler, choose the GET method and type the server URL in the URL box. Then click the Execute button. NOTE: Once the request is sent to the server, use the Inspectors to inspect the response. There is a different inspector type for almost all response content types like JSON, Web, etc.

How do I record API calls in Fiddler?

Run fiddler to start capturing web requests/response made by various client applications on your system (e.g. Curl, Chrome, Internet Explorer). To start/stop capture go to File > Check/Uncheck [Capture Traffic] option. By default when you run Fiddler it behaves as default proxy server on your system.

Which tab builds a raw HTTP request in Fiddler?

The Fiddler Everywhere HTTP(S) Inspectors tab renders the Request and the Response sections, which display the request and the response information for the HTTP(S) sessions that are selected from the Live Traffic list.

How do you use the Fiddler tool?

You can use Fiddler to create an HTTP session of the monitored web application. In Fiddler, go to Tools > Fiddler Options > HTTPS. Select Capture HTTPS CONNECTs and Decrypt HTTPS traffic. Go to File > Capture Traffic or press F12 to turn off capturing.


1 Answers

Use the URL

http://localhost:50570/api/foodlog?email=c 

Remove the Content-Length and the text from the request body. You can't send a body with a GET request.

like image 103
Darrel Miller Avatar answered Oct 07 '22 03:10

Darrel Miller