I'd like to watch requests and responses sent from my C# program that uses System.Net.WebRequest in Fiddler. Is it possible?
Yes,
Open Fiddler, start using your application and you will see entries appear in the Web Sessions table. Click these and look at what is being sent in the Inspectors tabs
Related
While my SPA app runs at http://localhost:50620 (shows at Chrome), Fiddler shows it's captured at 50701. I don't have a redirect inside of my app. Is it the browser link feature of the visual studio?
Yes, that's spam from the BrowserLink feature of Visual Studio. You can use Fiddler rules to hide it. You can also look at the Process column in the Session list to see which process is responsible for a given session.
I am following the tutorial from this link to learn about RESTful programming.
http://www.vogella.com/tutorials/REST/article.html
I have done the project under '7. CRUD RESTful webservice'.
When I run the Client (heading 7.5) for this project (Run as Application), I should get a form to input the details to be POSTed to the REST web service. But the form is shown in the Console window which shows the raw HTML file rather than the html page as rendered by a browser.
Any suggestions on what I am doing wrongly.
Thank you.
Section 7.5 of that tutorial is just a simple, hard-coded demonstration of interacting with the web service; it is not an app that accepts input and it certainly is not a browser. A (static) HTML page that accepts input and posts to the web service would not be hard to assemble, but it's outside the scope of that tutorial.
If you just need a client to test your REST service, there are lots of choices. For example:
an Eclipse plugin that is a REST client
Postman, a Chrome browser app that does the same thing.
I have an app on my phone that is communication with an API.
This API is not fully documented, and some data displayed in the app, I don't know how to reach.
What I wonder is if it's possible in some kind of way to trace what API calls the app is doing?
It's an app for iPhone.
Thanks in advance!
If by "an API" you mean a Web API and thus you want to see which web calls the application makes you can set up a proxy server between the iPhone and the internet and inspect the calls it makes.
See for example Charles Proxy from an iPhone.
I've created a XMPP Chat Web application. If I chat between web and client it works perfectly fine. However, if I chat between two web windows it doesn't work properly. It shows only first message and then stops working. I need to refresh the page to restart working.
Any idea why is that?
Are you using the same full JID (user#domain/resource) in both browser tabs? If so, you've probably written the "dueling resources" bug. You wouldn't be the first.
This question is not about how to set up local environment to test Facebook application. Rather I've already set this up with the help of this thread. In short I changed my hosts file and its working great.
But, I've a got a doubt:
Assumption: Everywhere I've read that Facebook server works like a proxy and fetches web-pages, like a web service, from application provider's server and then sends this embedded data to browser.
For testing purposes, I've changed my hosts file like mentioned in above thread. My question is if Facebook server is fetching data from my web server then how come my browser gets this data locally after changing hosts file?
It seems either my assumption is wrong or I am missing something fundamental. Please help. Thanks.
Facebook only acts as a proxy server if you are building an FBML app. If you are building an iFrame app, the request to your application is coming directly from the client browser. You can test this out by actually setting your canvas url to something like http://localhost:8080/ and running your app locally. You will be able to run the application like normal, but obviously only you will be able to use it since it is on localhost.