I have a desktop app calling web services. Initially I was using WinHTTP API function calls to communicate with the server. This method works great.
I decided to switch to the built-in HttpClient object. I'm using PostDataStart/PostData/PostDataEnd to send the request data.
A customer reports that clients using a VPN (FortiClient) are much slower using the HttpClient object verses my WinHTTP object.
Before I reverse the change, I'm wondering if there are any suggestions on resolving this issue. The application makes multiple calls using the same instance of HttpClient. I'm not sure if it is fast the first time and slow after that.