webclient
Using credentials for access control in C#
I have a SOAP -> web service structure, using C#.I have IIS - windows authentication turned on so I am adding the DefaultNetworkCredentials to the ClientCredentials in my service instance.I am able to[详细]
2023-03-22 12:49 分类:问答WebClient.OpenReadAsync() corrupts JSON data. Why?
I have a class in my Silverlight app that (de-)serializes JSON strings to/from an object class. I use WebClient.OpenReadAsync to get a file that cont开发者_运维百科ains this JSON string:[详细]
2023-03-22 06:33 分类:问答Silverlight + Weclient.DownloadStringAsync + IE = issue
I have an asp.net MVC server on one side and a silverlight 4 client on the other. In the Silverlight app I create a separate thread that regularly polls the server for an event. I am using firefox and[详细]
2023-03-20 19:58 分类:问答How do you prevent the WebClient class from automatically following the location in headers?
Is it possible on the WebClient class? E.g. something like: MyWebClient开发者_C百科.AllowAutoRedirect = false; (of HttpWebRequest)[详细]
2023-03-20 18:20 分类:问答True Parallel Downloads
This method i am using for concurrent downloads. public void DownloadConcurrent(Action Method) { Action[] methodList = new Action[Concurent_Downloads];[详细]
2023-03-20 14:02 分类:问答WebClient client ip address
I have a generic handler (ashx) that return a file from the file system. This handler is not beh开发者_C百科ind a login. However, I only need to return the file if the request has been made from insid[详细]
2023-03-19 23:37 分类:问答Security rules for subclassing transparent type with safe-critical constructor in Silverlight
In the Silverlight (v4.0) security model, Shawn Farkas says of deriving from types: [...] we see that application types may only derive from[详细]
2023-03-19 09:25 分类:问答Filling a HTML form with C#
I need help with connecting to a certain website via my username & password. With WebClient I can fill the username field and the password field, but how do I invoke the click method of the butto[详细]
2023-03-19 03:07 分类:问答WebClient.DownloadFile vs. WebClient.DownloadData
I am using WebClient.DownloadFile to download a small executable file from the internet. This method is working very well. However, I would now like to download this executable file into a byte array[详细]
2023-03-18 08:40 分类:问答Why does this exception claim the code doesn't write data?
If you run this code it will throw a WebException. The inner exception is \"Content-Length or Chunked Encoding cannot be set for an operation that does not write data.\" and I do not understand the na[详细]
2023-03-18 06:44 分类:问答