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.
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.
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.
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With