Questions tagged as 'webclient'

1
answer

Search for content from an online file

string nome, idade, valores; WebClient WEBC = new WebClient(); public void Exemplo() { valores = WEBC.DownloadString("https://pastebin.com/raw/r4GjhKQ3"); } I want to get the values of the name and age after the '=' of the 'values' varia...
asked by 17.06.2018 / 05:02
1
answer

How to download direct TXT file

I uploaded a file to a WEB server, but when I use this code: WebClient update = new WebClient(); string Teste = update.DownloadString("http://testexxx.000webhostapp.com/teste.txt"); Returns this error: ConfigurationErrorsException: Element...
asked by 29.05.2018 / 18:03
1
answer

Powershell (new-object System.Net.WebClient) .DownloadFile Strings as Arguments

I have the following code that I use to download the last chromedriver to a specific folder: (new-object System.Net.WebClient).DownloadFile("https://chromedriver.storage.googleapis.com/$($ChromeDriverLatestVersion)/chromedriver_win32.zip", "...
asked by 28.11.2018 / 20:21
0
answers

Read string from a .php or .txt page for Vbnet

Good afternoon guys! I need my program made in vbnet to read a string from a php or txt file upado in a website. I'm using the following code: Dim Client As New WebClient Dim URL As String = "address" '// <-- Site/endereço do arquivo .php o...
asked by 17.02.2018 / 18:18
0
answers

Download a folder to your computer

In C # to download a file, use the code: using System.Net; void Baixar(string url, string saida) { WebClient wc=new WebClient(); wc.DownloadFileAsync(new Uri(url), saida); } So far I have not found any well-explained code regarding...
asked by 14.01.2015 / 18:02