I have 4+ experience and working as software Engineer with Hytech professionals India PVT ltd and also working as Consultant,Trainer,Blogger and Author on Microsoft technologies,Also I have Trained more than 500+ IT professionals.I have knowledge about Asp.net,C#,SQL,Project management,replication,MVC,WebApi,SSRS,PostMan,TFS,SVN,Swagger,WMI,Agile,SignalR,Angularjs,IIS configuration.

Part 20::How to enable proxy server in web api 2?

Today we are implementing exceptionally straightforward case of how to pass application via proxy server and enable,disable any URL.How to work proxy server example  image shown below:-
Its very easy and simple way to enable proxy inside ASP.net Application 
Proxy server Flow chart
Step 1:-Add element inside web.config file.

 <system.net> 
<defaultProxy> 
<proxy proxyaddress="server IP:Port number" usesystemdefault="true" bypassonlocal="true"/> 
<bypasslist> 
<add address="IP address or URL with port" />
<add address="IP Address or URL with port" /> 
</bypasslist> 
</defaultProxy> 
</system.net>
 Description :-
1:-If you want use default proxy in application then no need to add proxy IP address.
2:-But if you want use custom IP address then you've to add IP address with port number inside web.config file.
3:-And if you want bypass any particular web URL or IP then you need to add bypasslist element inside defaultproxy element.

You have just read an article that categorized by title MVC / WEB API by title Part 20::How to enable proxy server in web api 2?. You can bookmark this page with a URL https://bikeshsrivastava.blogspot.com/2016/06/part-20how-to-enable-proxy-server-in.html. Thank You!
Author: Bikesh Srivastava - Tuesday, 21 June 2016

There are currently no comments for "Part 20::How to enable proxy server in web api 2?"

Post a Comment

Life Is Complicated, But Now programmer Can Keep It Simple.