WebClient is a class for .NET Framework applications that provides methods for sending and receiving data from a resource identified by a URI.
3
votes
0answers
104 views
webclient download empty file
Dim webClient As New WebClient()
webClient.DownloadFileAsync(New Uri(<<URL>>), <<Workstation Folder>>)
using code above, it is able downloading the URL of actual file. if ...
3
votes
0answers
329 views
Setting Content-Type header on WebClient.OpenWrite generates WebException
I am using WebClient.OpenWrite to POST to a WCF HTTP Web service in .NET 4. If I set the content type on the WebClient headers, then I wind up with a WebException (400 - Bad Request) when the stream ...
3
votes
0answers
1k views
WebClient and proxy server (Ntlm auth maybe?)
Having some issues connecting to internet from an application where a customer is using a proxy server.
The following code seems to work most other customers, including those that use proxies.
Dim wc ...
2
votes
0answers
143 views
WebClient redirect to response page after POST of form
I'm having some trouble trying to POST some form values to a page + redirect the user. For example:
User clicks register button
Some form values are populated
WebClient POSTS these values and ...
2
votes
0answers
221 views
WebClient with Mono for android to create file on server
I would like to write data to a file on a server. Therefore, I use the following code:
System.Net.WebClient webClient = new System.Net.WebClient();
string webAddress = ...
2
votes
0answers
497 views
WebClient - ServiceSecurityContext.Current.WindowsIdentity = null
I have a WCF service (which accesses a database) on a Windows 2008 (IIS 7.5) machine, called from Excel (VSTO - the Excel client resides on an internal network) via WebClient (uses a GET call via ...
2
votes
0answers
125 views
Httpunit test - how to retrieve cookie value
I have written 'Httpunit' test for my web application and I want to retrieve cookies ,but when I am using "web.getCookieValue(String value);" it's returning null .
This is my code:
public class ...
2
votes
0answers
221 views
VB.NET Application Freezed and not running
I have an application that uses a loop to call a new thread with some parameters, the application is great but when it comes to 100,000 records or so the application is not running (in the CPU and ...
2
votes
0answers
241 views
WebClient login and password
I need to enter username/password to the web https://secure.domaintools.com/log-in/?logout
HtmlAgilityPack.HtmlDocument doc = new HtmlAgilityPack.HtmlDocument();
NameValueCollection nameValues = new ...
2
votes
0answers
297 views
Login Authentication through HtmlUnit Web Client
I want to post a data using webclient but i have problem on submit button because i am not getting submit button object in page source.so how can i use this button in webclient.this is the source code ...
2
votes
0answers
343 views
Silverlight - How to get Webresponse string from WebClient.UploadStringAsync
public void Register(string email, string name, string hash)
{
string registerData = "{\"email\":\"" + email + "\",\"name\":\"" + name + "\",\"hash\":\"" + hash + "\"}";
...
2
votes
0answers
361 views
How to set system.net settings inside wpf application
In WPF project I am getting this error:
private void btnRetrieve_Click(object sender, RoutedEventArgs e)
{
Uri uri = new Uri("http://10.214.36.245", UriKind.Absolute);
using (WebClient wc = ...
2
votes
0answers
503 views
How to modify Content-Disposition Header when using .net WebClient FileUpload
Is it possible to manually set the 'name' attribute in the multipart header when using .net WebClient UploadFile? Or is there another way to get this solved?
-----------------------8cda1896efcd67f
...
1
vote
0answers
34 views
Uploading to FTP slow
following code is extremely slow compared to filezilla (code uploads at about 100 kbps, filezilla at 28 Mbps)
Private Sub UploadFTP(ByVal Datei As String, ByVal Dateiname As String, ByVal Ftp As ...
1
vote
0answers
88 views
Twitter Oauth in C#
I'm new to C# and I have a project where I use the Twitter Search Api. In this project I'm programming a "app" where I search Twitter for tweets. First it worked all fine with the query ...