PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Friday, June 24, 2022

[FIXED] how to set default proxy with .NET core 3.1 for HTTP client for any request?

 June 24, 2022     asp.net-core, interfax, proxy, reverse-proxy     No comments   

Issue

I am using interfax.api dll to send faxes to users. how I can add proxy server configurations to send the fax to users. actually I want to enable proxy server settings in .net core. what is best way to do it?


Solution

the issue not seems to be with interfax api. this can be solved with adding proxy uri to your .net core project like that

HttpClient.DefaultProxy = new WebProxy("http://199.169.6.177:5589/", true);

in your startup class ConfigureServices method



Answered By - Ali Hussain
Answer Checked By - Marilyn (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing