Dismiss Notice



3 MONTHS VIP - 10$; 6 MONTHS VIP - 20$; 1 YEAR VIP - 30$; 2 YEARS VIP - 50$; GOLD USER FOR LIFE VIP - 150$


Dismiss Notice
The registration is approved by the Administrator. It takes about 1 day to approve your registration
Dismiss Notice
For open hidden message no need write thanks, thank etc. Enough is click to like button on right side of thread.

Use Fiddler With Delphi XE7

Discussion in 'Delphi Tools' started by N0body, Oct 1, 2014.

  1. N0body

    N0bodyN0body is a Verified Member DelphiFan Administrator Staff Member DF Staff

    If you’re working with the REST client in Delphi XE5, XE6, Appmethod, and XE7 Firemonkey to consume REST APIs you may find it tricky to debug the HTTP data connections. There is a free application called Fiddler which can act like a proxy between your app and the REST server. Fiddler runs on your development machine but you could also connect to it’s proxy from your mobile device on the same network. Now Fiddler can automatically inserts itself into browser connections on your machine but in order for you to use it with the TRESTClient component you have to set TRESTClient.ProxyHost to and TRESTClient.ProxyPort to 8888. It also supports SSL so you can even debug secure REST APIs. There are so many features packed into it’s unbelievable. Some of the features I use are things like Replay which will resend your REST request from Fiddler to the server again, viewing the entire HTTP request and response headers, displaying the HTTP request and response body (as raw, as a JSON tree, as an XML tree), 24+ different User Agent settings, simulated modem speeds, handling GZIP content, filtering for certain URLs, and much much more. Now the next piece of the toolset is the REST Debugger Tool that comes with the Firemonkey IDEs. The REST Debugger is available via the Tools menu in the IDE. It is a slimmed down version of what Fiddler offers but it also includes Object Pascal source code (in the samples section) if you want to modify it yourself. Jim McKeeth has a tutorial for modifying the REST Debugger Tool which allows you to set up your REST API URL in the REST Debugger Tool and then copy and paste the TRESTClient components out of it into your Firemonkey project. The XE7 version already has the modification added to it (just use the Copy To Clipboard button). You really have to watch his video tutorial to see how awesome and easy it is to setup and consume REST APIs with Firemonkey on Android, IOS, Windows, and OSX.

    Download for FREE HERE
  2. softpopr

    softpopr Guest

    stas muy bueno
  3. SPCoeur

    SPCoeur Guest

    I don't know why but Fiddler is not detecting packets from TIdTcpClient (using GET) or TIDHttp. Any help would be greatly appreciated.
  4. SPCoeur

    SPCoeur Guest

    For getting Fiddler to work with TIdHttp you can read this post

Share This Page

Our website, law, laws, copyright and aims to be respectful of individual rights. Our site, as defined in the law of 5651 serves as a provider of space. According to the law, contrary to the law of site management has no obligation to monitor content. Therefore, our site has adopted the principle of fit and remove. Works are subject to copyright laws and is shared in a manner that violated their legal rights, or professional associations, rights holders who, adsdelphi@gmail.com I can reach us at e-mail address. Complaints considered to be infringing on the examination of the content will be removed from our site.
Donate Help To Us and Be VIP
6 MONTHS VIP - 20$; 1 YEAR VIP - 30$; 2 YEARS VIP - 50$; GOLD USER FOR LIFE VIP - 150$
Social Block