5,562 questions
1
vote
1
answer
91
views
Connection is closed when accessing Minimal Web API
I have a WPF app that host a Minimal Web API. To start the Minimal Web API, the following code is used:
public async Task StartWebApi(IEnumerable<string> urls, CancellationToken token)
{
var ...
0
votes
1
answer
98
views
Springboot RestClient 404 not found though address does exist
I am trying to make a Call by the org.springframework.web.client.RestClient.
The address/resource does definetly exist GET http://localhost:8080/someResource.
It is retrievable by simple call in the ...
-2
votes
1
answer
395
views
How HttpClient really works (aka What is really wrong with HttpClient)?
Two years ago, in an ASP.NET Core 8 MVC web app, I used HttpClient to make HTTP requests to an API, like this:
HttpClientHandler httpClientHandler = new HttpClientHandler()
{
Credentials = new ...
0
votes
0
answers
30
views
System.Net.WebException: 'The request was aborted: Could not create SSL/TLS secure channel.'
I have the following code to retrieve the HTML code from a given website:
private static string MakeRequest(string url)
{
ServicePointManager.Expect100Continue = true;
ServicePointManager....
0
votes
1
answer
268
views
Multiple fetch requests NOT executed in async on Chrome on Windows
I am developing a simple website using Svelte, with a frontend server in Svelte and a backend server in NestJS. Currently, I'm working on my local machine.
The issue:
I am sending a request from my ...
0
votes
0
answers
71
views
HttpWebRequest / WebClient returning content length of 0
I have two URL's that both return same object structure when pasted in a browser.
• One URL will work with C# HttpWebRequest and WebClient protocols. One URL will not.
• Both return 200 OK
• Both work ...
0
votes
1
answer
64
views
c# HttpWebRequest response string array object parsing error
I want to parse http request response into myDATA class. But gives me error
My codes under below. Im using also NEWtonsoft.Json
public class myDATA
{
[JsonProperty("data1")]
...
0
votes
0
answers
69
views
Deserialize JSON to already filled class in C#
I have to make multiple requests to get some data from a REST webAPI (it's a lot of data and the service doesn't give it to me all in one single request).
To do that, I'm using do while and it's all ...
0
votes
0
answers
39
views
Encoding Charset:UTF8 Problem in HttpWebRequest
var path = "/test";
HttpWebRequest httpWebRequestContent = (HttpWebRequest)WebRequest.Create(Domain + path);
httpWebRequestContent.ContentType = "application/...
0
votes
0
answers
4k
views
TLS 1.3 is not working. A fatal error occurred while creating a TLS client credential. The internal error state is 10013
We have windows server 2022 in which we have enabled TLS 1.3 and .Net Framework 4.8 is installed
but our web application is build on .Net Framework 4.5, Thus we are not getting any response from TLS 1....
-1
votes
1
answer
62
views
Transform synchronous function into asynchronous
I would like to know how I can change the function below to the async method
my code:
Public Function GetPostWebService(urlget As String, stringdata As String) As String
Dim result As String = "&...
0
votes
1
answer
205
views
HttpWebRequest not responding suddenly
I have been running a HttpWebRequest on a public website to return JSon for at least a couple of years. Last week it suddenly stopped working and would not give a response via this code (it is called ...
0
votes
1
answer
59
views
Secure User Authentication - Python Server Architecture Question
I will preface this by saying I am a little new to some of this and worry I may be over thinking this problem or re-inventing the wheel in some way.
I am making a game in Unity and want to include ...
0
votes
1
answer
2k
views
C# & ASP.NET Core Web API runs in my local IIS, but not in the staging server IIS. HttpWebResponse execption on POST request
I need some help to find the problem, I'm really lost here. I'm already a developer, but I'm working with C# about three months now.
Let me start with the environment:
Local:
Windows 10 Pro 22H2 (...
0
votes
1
answer
5k
views
Get a file from a URL with PowerShell
I am receiving an email that contains a link to a website that immediately starts a download of a file. I am able to successfully get the email and the URL, and when I paste the URL into the browser ...
0
votes
0
answers
96
views
How to get response data from a redirect url using HttpWebRequest
I'm spidering some data from Weibo, but when I get data from https://weibo.com/ajax/profile/getImageWall?uid=6596153448&sinceid=0&has_album=true, it returns a HTML string like
<html&...
0
votes
0
answers
119
views
HttpWebRequest returns 403 in Windows Server 2019 to url:microsoft.com
I am trying to make a web request to microsoft.com (either http, https) in windows 11 succeeds but in windows server 2019 returns 403. Below, is the code:
var uri = new Uri("https://www.microsoft....
1
vote
0
answers
385
views
How to set TLS version at request level?
We have an application in .Net Framework 4.7 which hosts multiple API endpoints. The application is deployed in multiple servers (some of them are old) and TLS 1.2+ is not enforced from them. This is ...
0
votes
0
answers
410
views
VB.net HttpWebRequest TimeOut
I have a little problem when using HttpClient.
I plan to make several web requests, mainly GET and POST.
A few years ago I was able to do it without worries, and there I wanted to do a little project ...
0
votes
0
answers
1k
views
Error: The request was aborted: Could not create SSL/TLS secure channel
.NET version is 4.6.2 and The version of VaultSharp package being used is VaultSharp.1.4.0.1
Code:
ServicePointManager.Expect100Continue = true;
ServicePointManager.SecurityProtocol = ...
0
votes
1
answer
737
views
Calling 3rd party's rest api embedded with p12 certificate
I’ve been searching for days but couldn’t find a solution. I have an API written in C#. I have to call 3rd party’s rest API from an URL with JSON input but I have to use 3rd party’s p12 certificate in ...
0
votes
0
answers
36
views
How to put a file along with a custom class in a POST Rest call?
I've been scraping my head for a while, i just can't figure out on how to do this with NLogger(Net4.7.5)
The intention of this HttpPost request is that its supposed to send a .stl file together with a ...
0
votes
1
answer
224
views
How SOAP header should be added in Dynamically invoked web service using c#?
The below code invoke the webservice dynamically and process the request.
How to add a soapheader to this dynamically called service?
HttpWebRequest myWebRequest = (HttpWebRequest)WebRequest....
0
votes
1
answer
141
views
Change Output Of API Request?
I'm trying to use Replicate to send a text prompt and get a point cloud in return (to hopefully convert into a model) and bring into Unity. I got the request calling in Unity, but there seems to be ...
0
votes
0
answers
292
views
How can I download PDF files with HttpRequest
I have a problem, my program reads an ODT file and downloads the links inside it, these links correspond to PDF files available on an intranet.
The problem is that as a result of the program, I don't ...