Why Fiddler shows diff port (50701) than the URL (50620) - fiddler

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.

Related

How to authenticate VSCode extension via browser SSO so extension can post to server API?

I want to create a simple VSCode extension that does a REST API POST of the contents of the editor window to a URL.
The issue is the URL is in a corporate environment behind a browser based single sign on sequence that requires multi-factor authentication with a hardware token and does multiple redirects when a user logs on normally through the browser. I'm not looking to circumvent this in any way, but simply authenticate the VSCode extension somehow so it can do the POST (and re-authenticating every session is fine, just not for every post).
The SSO authentication process seems to be fine with multiple windows in the browser, so e.g. you can login in one window and then do say AJAX POSTS from Javascript in another window to the REST API. So I kind of want VSCode to be considered just another window in that scenario.
I am thinking something like opening a browser window within VSCode itself to allow the user to manually authenticate, then somehow the session is maintained and VSCode can POST to the REST API URL when it wants?
Or perhaps triggering a window in an external browser for the authentication but then how would VSCode be authenticated to do the POSTS as the external browser would be a separate application.
Client OS is Windows 8 (corporate policy!) if that makes any difference. I don't have any access to modify anything on the server.
Any thoughts/suggestions welcome, thanks.

Seeing web traffic from my C# app in Fiddler

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

Custom facebook page tab issue

So, for whatever reason, some people can't see the custom facebook page tab. Not sure why, especially when I can see it just fine.
Link: http://on.fb.me/rKNxUS
Let me know if you need more info.
Do you have a https version of the page tab? If they're account always uses ssl and you don't you might run into issues. Other times I've seen resetting the app secret help with issues like this.
It shows a standard browser error page to me. "This webpage is not available Google Chrome's connection attempt to incontrolwebsites.com was rejected. The website may be down, or your network may not be properly configured."
May it be possible you didn't upload the webpage to the production server?
If it opens correctly from your machine: check that you don't have a custom DNS setting to point to your local webserver instead of the production server.

Disable Facebook mobile browser detection?

Does anyone know of a way to disable the mobile browser detection and redirect feature of Facebook via querystring parameters?
For example, if I go to www.facebook.com/CraigslistGenie in a mobile browser, I get redirected to http://m.facebook.com/CraigslistGenie. I would like the user to stay on the www version of the page.
you either change the user-agent to achieve that or you add ?m2w to the link i.e. http://www.facebook.com/CraigslistGenie/?m2w does NOT redirect (tested on Android) while http://www.facebook.com/CraigslistGenie does redirect to http://m.facebook.com/CraigslistGenie
For reference see here and here.
The first answer is correct, however if you want it to work on an Android phone (and keep working when you click on links within the site) you need to go into the browser settings (after you've gone to the http://facebook.com?m2w) and check the "Desktop version" setting.
This will prevent the browser from constantly trying to send you to either the mobile version of the site or the FB app.
Method given by Yahia is good. Adding ?m2w to link means converting mobile to web view.
Or,
Change settings of mobile browser i.e. User Agent. Both Steel and Dolphin browsers allow you to change that setting however. Both are free in the market. (I am not doing any marketing of browsers.)
Some of you may have noticed that, despite changing the User-Agent in the browser, you are still sent to a mobile website anyway. Check this patches given.
Check this huge discussion about tricks used for hiding mobile browser.

facebook graph api error You are using an incompatible web browser

i'm trying to display my facebook group wall on my external web page and it gives me the error message..
You are using an incompatible web browser.
Sorry, we're not cool enough to support your browser. Please keep it real with one of the following browsers:
*
Mozilla Firefox
*
Google Chrome
*
Safari
*
Microsoft Internet Explorer
My code for checking the returned content is as follows..
echo(file_get_contents('http://www.facebook.com/groups/GazelleAB/'));
Can someone please tell me what else i need to get this working. I'm using PHP.
sowi guys i'm using Firefox 3.6.15
I sugest you use the Facebook Graph API for Groups rather than trying to scrape the data you want.
It's possible that this seems to be a case of your firewall, whatever kind you are running, trying to protect you from some transaction that is required by Facebook. For Symantec Endpoint, for example, go to Network Threat Protection -> Options -> Change Settings and under Stealth Settings, remove checks from all 3 boxes. If it's a different firewall, look for some setting that might be filtering out what Facebook needs. (Symantec, at least, does warn you in the Settings box that enabling these settings may interfere with using some websites.)