.NET web service through proxy over HTTPS



I have developed one c# .NET client application which accesses .NET web service over HTTPS.
When I try to access it through the proxy (which needs each web request to have a user agent set as IE user agent), I can not access the web service.
I checked the HTTP header in ethereal and these are my observations:
1. With proxy if I access the web service though IE browser, CONNECT request has the user-agent field.
2. With proxy if I access the same web service through .NET client application , CONNECT request does not contain the user-agent field.

If I include user agent in SoapHttpClientProtocol , it gets applied to HTTP header but I can not modify or add something in the CONNECT request.

So is it a .NET framework limitation that it never includes user-agent information in the CONNECT request ?
Does anybody have any solution to this problem?


--------------------------------
From: Sonali Kulkarni

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>We0BxTOHa0SMxabTCOTxwQ==</Id>
.



Relevant Pages

  • RE: Calling a WebMethod returns HTTP Status 417: Expectation failed
    ... Thank you for the informaiton. ... send the request correctly. ... For Web service, ... Have you tried to set the proxy property for the client ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: how can i convert .asmx file to a .ashx?
    ... wsewsdl2.exe is a tool that generates proxy code for Web service clients ... The proxy derived from ... When you build an XML Web service client, whether you use Visual Studio .NET ... a proxy class is generated to communicate with the XML Web service. ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Re: Asynchronous Web Service Call
    ... I think I understand your request so here goes.... ... How is the request handled from a consumer perpective? ... stage later when the web service process is complete, ... The background of my question adresses server to ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: An existing connection was forcibly closed by the remote host
    ... Within my web service proxy class I overrode the GetWebRequestmethod and modified it as shown below. ... HttpWebRequest request = base.GetWebRequestas ... If the size of the request message I was using is greater than the size of the packets the host could receive and the host is configured receive chunked messages then I guess I can assume when we sent a message larger than the packet size without sending it chunked their server terminated the session because it was waiting for another TCP message??? ... at System.Net.Sockets.NetworkStream.Read(Bytebuffer, Int32 offset, Int32 size) ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: Have thread end if not finished in X seconds
    ... As we have grown we needed real time over the internet validation--the perfect way to do this is with a web service and new systems are using the web service fine. ... the old systems are only able to support real time validation via TCP/IP requests. ... This TCP/IP server has a main sub that listens for TCP/IP requests and when it hears one it launches a thread to answer and handle that request. ... The main thread will wake up, and from there we can kill the worker thread in the main thread. ...
    (microsoft.public.dotnet.languages.vb)