switchboard icon indicating copy to clipboard operation
switchboard copied to clipboard

Server Request only going to base URL

Open secureauth opened this issue 11 years ago • 1 comments

var endPoint = new IPEndPoint(IPAddress.Loopback, 8051); var handler = new SimpleReverseProxyHandler("https://secureauthappl.paynenet.com/secureauth71"); var server = new SwitchboardServer(endPoint, handler);

The above url will only render the base url of https://secureauthappl.paynenet.com. This would lead me to believe that the url phrasing is not working correctly. I'll try to solve, but was hoping you could point me in the right direction.

secureauth avatar Aug 28 '14 03:08 secureauth

@secureauth It's been quite some time since I looked at this myself tbh. The SimpleReverseProxyHandler takes the URI you give it and extract the IP and port from it and then connects to it, optionally rewriting the host header. If you wanted to have it support merging the relative path in the request with one in the proxy this is where you'd intercept it and rewrite the RequestUri property on the request.

I'll try to solve, but was hoping you could point me in the right direction.

This should get you started, let me know if I can help you further. If you open a PR we can discuss it more there as well!

niik avatar Aug 28 '14 13:08 niik