25 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
70
views
ASP.Net Core 9 HttpClient.PostAsync fails to hit controller endpoint
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
HttpClient PostAsync not working but can post request by Postman
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
Cursor dissapears when usin PostAsync .Net Maui
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
Sending POST Request using .NET HttpClientClass
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
C# HttpClient PostAsync request is returning a Bad Request status
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 ...
0
votes
0
answers
255
views
C# How to call a post API by "PostAsJsonAsync" when the specification of header and body of this API is given?
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
Web API - Problem with PostAsync (http Rest) calls
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
PostMan Token works but source code has error: The request was aborted: Could not create SSL/TLS secure channel during trace
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
HttpClient PostAsJsonAsync not working in Framework 4.6
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
How to use a string already urlencoded on PostAsync?
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 ...
0
votes
1
answer
49
views
Woocomerce : Update a product doesn't work
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
Post Request responded 500 on HTTPClient in Asp .net Core
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
Roblox - Call external GraphQL API
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
HTTPClient.PostASync() method is not working with body information in C#, But working fine with Postman and Talend tools
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
C# application hangs during POST request to python http server
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....