Error "IOException: The response ended prematurely" when sending an https request. #1388
-
Hello! I'm trying to make an https request to https://example.com, but I get a System.Net.Http.HttpRequestException: "An error occurred while sending the request."
as an instance of YARP I use the example ReverseProxy.Direct.Sample, can you please tell me if additional YARP configuration is required? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
YARP is not a forward proxy that can be used in the WebProxy field. This may help explain the difference: https://www.linuxbabe.com/it-knowledge/differences-between-forward-proxy-and-reverse-proxy You'd send the request to YARP like this:
And YARP would use its configuration decide if that request should be sent to example.com or somewhere else. |
Beta Was this translation helpful? Give feedback.
YARP is not a forward proxy that can be used in the WebProxy field. This may help explain the difference: https://www.linuxbabe.com/it-knowledge/differences-between-forward-proxy-and-reverse-proxy
You'd send the request to YARP like this:
And YARP would use its configuration decide if that request should be sent to example.com or somewhere else.