S
Simon Shearn
Hello -
I'm trying to connect to a secure (HTTPS) webservice from a device running
..NET Compact Framework. I'm using the HttpWebRequest class. In cases where
the server is unavailable, unplugged for example, I find that this class
throws a webxception with status SecureChannelFailure. This is a problem,
because my application needs to distinguish between low-level network
problems and problems at the SSL/certificate level.
Possible solutions include:
1) Abandoning HttpWebRequest and working at the socket level (lots of work)
2) Trying to check the status of the server in some other way (eg. HTTP,
ping, etc)
Is there anything else I should be trying to make HttpWebRequest return a
more helpful exception status?
Thanks
I'm trying to connect to a secure (HTTPS) webservice from a device running
..NET Compact Framework. I'm using the HttpWebRequest class. In cases where
the server is unavailable, unplugged for example, I find that this class
throws a webxception with status SecureChannelFailure. This is a problem,
because my application needs to distinguish between low-level network
problems and problems at the SSL/certificate level.
Possible solutions include:
1) Abandoning HttpWebRequest and working at the socket level (lots of work)
2) Trying to check the status of the server in some other way (eg. HTTP,
ping, etc)
Is there anything else I should be trying to make HttpWebRequest return a
more helpful exception status?
Thanks