webclient Questions

4

Following scenario: I have two Microservices A and B. Service A is a Bearer client that has an open api and receives requests from clients that have to be authorized by keycloak. Now I want to send...
Kroo asked 11/12, 2020 at 10:56

4

Solved

How might I change the verb of a WebClient request? It seems to only allow/default to POST, even in the case of DownloadString. try { WebClient client = new WebClient(); client.QueryString.Ad...
Cultivate asked 2/7, 2013 at 0:38

4

Solved

I'm facing some problem while sending request body in spring boot web client. Trying to send body like below: val body = "{\n" + "\"email\":\"[email protected]\",\n" + "\"id\":1\n" + "}" v...
Coreencorel asked 9/11, 2018 at 12:3

10

I am trying to download file from a URL and I have to choose between WebClient and HttpClient. I have referenced this article and several other articles on the internet. Everywhere, it is suggested...
Remote asked 16/8, 2017 at 10:44

3

Solved

Consider a simple C# NET Framework 4.0 application, that: uses WebClient authenticates using NTLM (tested on IIS 6.0 and IIS 7.5 server) retrieves a string from an URL multiple times using Downlo...
Terminus asked 30/9, 2016 at 8:51

13

Solved

I am trying to download a client's data to my local machine (programatically) and their webserver is very, very slow which is causing a timeout in my WebClient object. Here is my code: WebClient ...
Unbent asked 24/11, 2009 at 11:59

13

Solved

I am trying to download a client's data to my local machine (programatically) and their webserver is very, very slow which is causing a timeout in my WebClient object. Here is my code: WebClient ...
Insomuch asked 24/11, 2009 at 11:59

11

Solved

When I try to POST to a URL it results in the following exception: The remote server returned an error: (417) Expectation Failed. Here's a sample code: var client = new WebClient(); var pos...
Contestant asked 19/2, 2009 at 17:57

5

Solved

What's an easy way to create a directory on an FTP server using C#? I figured out how to upload a file to an already existing folder like this: using (WebClient webClient = new WebClient()) { s...
Washedup asked 13/5, 2009 at 21:57

3

Solved

When I send a post request, I get this error. Caused by: com.fasterxml.jackson.core.JsonParseException: Unrecognized token 'message': was expecting (JSON String, Number, Array, Object or token 'nul...
Papua asked 31/10, 2021 at 20:31

14

While sending a file I receive an array of bytes. I always have a problem with webflux to receive an array. the error thrown as below : org.springframework.core.io.buffer.DataBufferLimitException: ...
Dark asked 14/1, 2020 at 14:38

6

Solved

Is there any way to use a socks proxy with WebClient? Specifically with the DownloadString method that it provides? I don't want to use any third party stuff like privoxy, freecap whatever and I ...
Battology asked 29/10, 2012 at 13:13

0

I using spring-boot-starter-parent:2.7.7 I have the below config of webclient to call soap web services @Bean fun webClientXml(): WebClient { val httpClient = HttpClient.create() .option(ChannelO...
Chefoo asked 31/12, 2022 at 11:9

3

Solved

When I execute the following code System.Net.ServicePointManager.ServerCertificateValidationCallback = (sender, certificate, chain, errors) => { return true; }; var webClient = new WebClient()...
Tetrachord asked 23/3, 2015 at 15:8

5

Solved

I am trying to post to our asterisk box to parse out the phone list from a console application this works : class Program { static void Main(string[] args) { Console.WriteLine( HttpPost())...
Jovanjove asked 11/5, 2010 at 19:4

13

Solved

I am using the following code which is working on local machine, but when i tried the same code on server it throws me error A connection attempt failed because the connected party did not prop...
Bova asked 17/7, 2013 at 7:7

5

I'm downloading a file using a simple line like this: $webclient = New-Object -TypeName System.Net.WebClient $webclient.DownloadFile("https://www.example.com/file", "C:/Local/Path/file") The pro...
Orsay asked 29/1, 2014 at 4:49

5

Solved

How do I get Content-Disposition parameters I returned from WebAPI controller using WebClient? WebApi Controller [Route("api/mycontroller/GetFile/{fileId}")] public HttpResponseMessage GetFile(...

3

Solved

I'm trying to put multiple headers into defaultHeaders(), But I don't have idea how to create Consumer object from return of createHeaders() method this.someWebClient = WebClient.builder() .baseUr...
Blackmarketeer asked 28/7, 2020 at 14:16

2

I have an event that takes about 10-30 seconds, namely downloading information from a page (with quite a lot of traffic), modifying it and then saving it somewhere onto the disk using WebClient. Be...
Hoiden asked 13/11, 2010 at 10:59

2

Solved

i am using spring web flux, web client to call a rest api. i am getting the following error. Oct 21 09:46:27 ql-hybrid-stg web.7d755d6967-5d7v8 Suppressed: java.lang.Exception: #block terminated wi...
Waterworks asked 21/10, 2020 at 5:14

3

Solved

I am trying to use a WebClient / HttpWebRequest to download some data from a server. I use the following code to do so: WebClient client = new WebClient(); client.Credentials = new NetworkCredenti...

2

Solved

I can download a single file from the web using: $wc = New-Object System.Net.WebClient $wc.DownloadFile("http://blah/root/somefile.ext", "C:\Downloads\www\blah\root\somefile.ext") But how do I d...
Quorum asked 11/7, 2012 at 15:59

4

Solved

I'm developing a windows service, that downloads images from a specific URL. The service runs correctly on my computer but when I install it in the server it does not download the image and it give...
Choker asked 6/10, 2012 at 9:57

4

Solved

I'm using webClient.DownloadFile() to download a file can I set a timeout for this so that it won't take so long if it can't access the file?
V asked 2/3, 2009 at 10:16

© 2022 - 2025 — McMap. All rights reserved.