Questions tagged as 'webclient'

1
answer

How to download automatic in site that calls JavaScript?

I need to make a program that downloads PDFs from several sites daily and automatically. It is very easy to perform this operation using the C # WebClient command, however, on certain sites it is not possible to find the download URL in any way....
asked by 30.05.2014 / 16:33
1
answer

POST Request in Jetty Client 9.X

I'm using Jetty Client to request a API Web , until recently everything was ok, but I felt the need to send data via POST. Problem In Jetty's documentation says that POST request data should be passed by the param("chave"...
asked by 05.08.2015 / 17:30
1
answer

Using TLS 1.2 in the .NET Framework 2.0

I want to use TLS 1.2 on a Webclient call in the framework .NET 2.0 Is it possible? try { using (System.Net.WebClient client = new System.Net.WebClient()) { string u = client.UploadString(url, xml); return u;...
asked by 04.12.2017 / 18:51
1
answer

Unrecognized element (File download)

I'm trying to make a code to download the file to a folder and it returns me this error Unrecognized element. Code: string pasta = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86) + @"\teste\"; download = new WebClient()...
asked by 31.05.2018 / 19:58
1
answer

WebClient.DownloadFile (Address, FileName) Doubt using variable

Well, I'm creating an update system, and it's giving error on one part WebClient web = new WebClient(); string DownloadVersion = web.DownloadString("https://drive.google.com/uc?authuser=0&id=1bpVdsyUj3oOn1gLbcVRE7uZjIczI5Yc_&export=dow...
asked by 10.12.2017 / 22:15
1
answer

WebClientDownloadFileTaskAsync file in use, even with Dispose

I'm downloading 10 images at the same time async, but in the 2nd photo usually the error that the image is in use.    The process can not access the file because it is being used by   another process. I already think it's strange, because...
asked by 20.10.2016 / 13:48
1
answer

HttpPost is not resolved in my class in my application

I can not import org.apache.http.conn class into my application in Eclipse. This is my class: package br.com.cadastro.cadastrocompleto.suporte; import java.io.IOException; public class WebClient { private String url; publ...
asked by 11.02.2016 / 16:00
1
answer

Associating ListT with WebClient

How to associate a class List with a WebClient , and when it finishes it calls another WebClient in a index List< WebClient > clients; void BaixarTudo(List< string > urls){ for(int i=0;i < urls.Count; i++){ cl...
asked by 17.01.2015 / 23:17
2
answers

WebClient request returns empty

In my program I need to get content from my website, but the return of the downloadString method of the webclient object returns null. The most intriguing is that there is no exception, the status code is 200, the request is perfectly executed b...
asked by 06.03.2014 / 18:43
1
answer

WebClient C # ending download before downloading

I have a question, I'm using WebClient in C # language, I have the following problem: I click on Download a file, and it does not start downloading, it says download is already finished ... Code: WebClient Web = new WebClient();...
asked by 22.12.2017 / 01:47