Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
0 votes
0 answers
70 views

HttpClient.PostAync does not reach controller endpoint at all. GetAsync and DeleteAsync are OK. Program.cs: builder.Services.AddControllersWithViews(); app.MapControllers(); Controller: [Route("...
0 votes
1 answer
120 views

I am using httpClient.PostAsync to post my request but it is not working. I tried same request header and body with Postman and it is working well. I have checked in fiddler for request, below is from ...
0 votes
0 answers
52 views

I am Posting a JSON in .Net Maui to HTTPClient that works correctly the most time. But sometimes it fails. I have RestService class that contains a method called PostJason and my code is inside try/...
0 votes
1 answer
57 views

i am trying to send a CSV File with http POST by means of the .NET framework. Having consulted various threads here, foremost "send rest-request with attached pfx certificate" i always end ...
0 votes
1 answer
406 views

When running the below C# HttpClient PostAsync request I am getting a bad request status. I'm not sure why this is. I have a username and password that I am passing. Not sure whether I am adding that ...
CGarden's user avatar
  • 349
0 votes
0 answers
255 views

I am learning to use API and I have been given the specification of the URL, header and body of an API. The example is shown as follow url: api/getRate hearder:{ "msgNo": "abc123"...
0 votes
0 answers
132 views

Good morning, I have a big problem with routing (I guess) for http Post calls. I use .Net 6. I have the following call which works fine: HttpResponseMessage response1 = await client.GetAsync("...
0 votes
1 answer
155 views

I have a code for getting token. It works in live server. But when I am tracing the code in my system I get this error: The request was aborted: Could not create SSL/TLS secure channel When I try to ...
0 votes
1 answer
452 views

I don't what it is, but the moment I run my project in debug mode and hits this line within PingServerAsync(): var response = await httpClient.PostAsJsonAsync(url, payload); it hangs for a sec, then ...
0 votes
1 answer
726 views

I'm getting the body using a proxy on my computer which gets all specific requests I made to a specific host and resend them to the server using PostAsync. The body looks like this: string ...
SrMilton's user avatar
0 votes
1 answer
49 views

I'm trying to update a product's informations to the WooCommerce shop, from a windows service as follows: using (var client = new HttpClient()) { client.DefaultRequestHeaders.Accept....
0 votes
1 answer
3k views

Request response: {StatusCode: 500, ReasonPhrase: 'Internal Server Error', Version: 1.1, Content: System.Net.Http.HttpConnectionResponseContent, Headers: { Transfer-Encoding: chunked Server: ...
0 votes
1 answer
231 views

I would like to call an external graphql API (without authentication for the moment). Here is my code : local open_api = "https://graphqlzero.almansi.me/api" local payload = '{"query&...
0 votes
0 answers
403 views

I have to use httpClient.PostASync() method in C#.Net , I am fine with passing header information. but I am getting trouble while trying to pass the "Body" information, under a specific ...
0 votes
1 answer
195 views

I have a C# app that makes a post request to a simple http server created in Python but my request never "finishes" and doesn't progress past the point of making an asynchronous POST request....

15 30 50 per page
1
2

AltStyle によって変換されたページ (->オリジナル) /