.net - Cannot disable proxy caching -
i've got c# web client application uses restsharp library access third party web service. in environments has work via proxy. i'm using webproxy framework class provide proxy details , works fine. except 1 edge case.
the proxy (squid in case) configured require credentials.
if code sends request with webproxy credentials , after (less minute) (exactly same in case) request without credentials, nevertheless receive ok response instead of 407 (authentication required) error.
i've tried multiple suggestions found here , in other internet resources:
- using cachepolicy nocachenostore
- defining "cache deny all" in squid
- calling "deleteurlcacheentry" of wininet.dll
- providing random timestamp parameter make request url unique
- adding cache control headers request
to no avail. i'm pretty sure restsharp not blame able trace execution inside library point uses underlying .net apis. restsharp respects both proxy , caching policy settings , passes them on .net classes.
i have not tried yet other proxies - squid.
i'd glad hear ideas and/or suggestions in solving problem.
regards,
Comments
Post a Comment