Skip to main content
Published: December 05 2006, 1:08:00 PMUpdated: November 28 2020, 3:05:03 PM

I am trying to make an API request via a proxy server, but I am getting the following error:

"The underlying connection was closed: The remote name could not be resolved"

How can I fix this?


Summary

If you have a proxy server, you need to set the proxy configuration to make your API requests. 

For .NET clients, please see the following Microsoft Article for information on how to resolve the issue:
PRB: Error on .NET client that consumes a Web service through an HTTP proxy server

For Java clients, please set the Java environment variables, "https.proxyHost" and "https.proxyPort" to allow HTTPS connections to work properly through your proxy server: Java Networking and Proxies
 



How well did this answer your question?
Answers others found helpful