Skip to content

Instantly share code, notes, and snippets.

@ricardovsilva
Last active May 19, 2016 18:39
Show Gist options
  • Save ricardovsilva/f8c8042deb846d4c8c6e58c972ae5708 to your computer and use it in GitHub Desktop.
Save ricardovsilva/f8c8042deb846d4c8c6e58c972ae5708 to your computer and use it in GitHub Desktop.

If you want to debug HTTPS requests, you must execute, at any point of your code, these command:

ServicePointManager.ServerCertificateValidationCallback = delegate { return true; };

Then, you must add the following lines to your web.config:

<system.net>
	<defaultProxy enabled="true">
		<proxy proxyaddress="http://127.0.0.1:8888" bypassonlocal="False"/>
	</defaultProxy>
</system.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment