poidasmith / xlloop

XLLoop Excel Function (UDF) Server
104 stars 50 forks source link

Fix proxy url size bug #36

Closed stuartbain closed 6 years ago

stuartbain commented 6 years ago

Current code doesn't work with proxy if the proxy url length is longer than the url length. This is due to typo which only allocates enough memory for the length of the url string instead of length of proxy string.

poidasmith commented 6 years ago

Hi - could you comment on the change of the WINHTTP_ACCESS_TYPE?

stuartbain commented 6 years ago

Access type is set to WINHTTP_ACCESS_TYPE_NAMED_PROXY to ensure that url host name is resolved by the proxy. Without this change xlloop would not work when connecting to a host outside the local network.