httpwebrequest - How do I get HTTP StatusCodes other than 200 on Windows Phone 7? -
currently windows phone 7 if access page returns statuscode of 500 or besides 200 ok message saying notfound. in silverlight there couple options handling this:
- use silverlightfaultbehavior if control rest service (i don't though)
- use
httpwebrequest.registerprefix("http://", webrequestcreator.clienthttp);
i'm wondering if there options windows phone 7.
all have catch webexception
, , access response within that. can @ status code, response stream etc.
if that's no use you, please post code you're using , you're trying - it's hard know you've tried @ moment.
Comments
Post a Comment