372 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
1
answer
157
views
Why is my patch request being blocked despite PATCH being allowed by the server's CORS policy?
The Gist API explicitly allows any * host and the PATCH method:
access-control-allow-origin: *
access-control-allow-methods: GET,PUT,PATCH,OPTIONS,POST
However, when a PATCH request is issued from a ...
0
votes
1
answer
140
views
.NET Core 8 site on IIS 10 rejecting PATCH, PUT, DELETE requests
I've been adding an API to a .NET Core 8 website. When I run it locally in IIS Express out of Visual Studio, all the PATCH, PUT, and DELETE requests work. When I deploy to IIS 10 on a server, they're ...
0
votes
1
answer
48
views
Safe (HTTP Methods): POST with certain MIME types?
From MDN (Archive):
for HTTP request methods that can cause side-effects on server data (in particular, HTTP methods other than GET, or POST with certain MIME types), the specification mandates that ...
0
votes
1
answer
55
views
Send IformData as a field within Postman
This is my postman setup;
for the request object;
public class UploadRequest
{
public List<IFormFile> File { get; set; }
public int EntityType { get; set; }
public ...
0
votes
2
answers
69
views
In Flask, my custom endpoint returns 404 in HTML despite having a JSON response
When trying to curl this endpoint with curl -X GET -i localhost:5000/person/66c09925-589a-43b6-9a5d-d1601cf53287
the implementation works fine:
HTTP/1.1 200 OK
Server: Werkzeug/3.0.3 Python/3.12.3
...
-2
votes
2
answers
204
views
Why can I test the delete method perfectly in Postman but not in the browser? [closed]
I found that my HTTP delete request runs perfectly when I test it in Postman. However, when I try to test it in the browser, I receive a 'Cannot GET /account/delete/Julieth' error. I managed to ...
0
votes
1
answer
395
views
Should i use GET or POST for request with body in DRF?
I am relatively new to the web development and I am writing backend for webapp for practicing chemical elements and compounds and their formulas in our school. I am using Django and Django Rest ...
-1
votes
1
answer
233
views
Which HTTP method is correct for RPC over HTTP triggering asynchronous action eventually changing server status? [closed]
We are using HTTP protocol to trigger an asynchronous action on the web server, which later in the background loads data from another server and writes them into our server's database.
┌──────┐ ...
0
votes
1
answer
68
views
What HTTP method should a route have if it's for create_or_delete
Yea I know it's such a strange purpose create_or_delete. But I have an attendances table for users, and in the frontend there's a checkbox,
when it's checked -> create an attendance record
when ...
0
votes
1
answer
71
views
Which url name should be used for api performing the membership withdrawal function
Q1. Is it okay to use the word "deregistration" in the API specification,
or should I use "signout"?
Which one is better?
Q2. And I wonder if the actual logic of membership ...
1
vote
1
answer
336
views
Why does it return status code 405 instead of 401 unauthorized? [duplicate]
Here in my ASP.NET Core 6 Web API project, when I try to make a request to an authorized endpoint and I'm not authenticated, the API returns a status code of 405, but isn't it supposed to return 401 ?
...
0
votes
1
answer
383
views
how to remove "Request method 'GET' not supported' error from the screen in java
When i access the URL api in the browser, i get this error in the screen:
Request method 'GET' not supported
What i want is to completely remove this error when i access the url directly in the ...
1
vote
1
answer
193
views
How do I properly pass an group ID parameter into the GroupMe API
I am trying to return a specific group by ID in GroupMe using Python. The official documentation states that, to get a specific group, you append the base URL with /groups/:id and add the group ID ...
0
votes
1
answer
78
views
Handle HEAD request with CefSharp
I am evaluating CefSharp to build a desktop application which basically only wraps a web application. To access files from the file system I want to intercept http requests of the web app.
I adapted ...
-1
votes
1
answer
84
views
Best Practices for retrieving data in MVC: Concerns about Using POST for Retrieval and Token Handling [closed]
I'm currently working on a MVC app. I've implemented a route using a POST method to retrieve information and navigate to the corresponding page, and I have some concerns about the design practices I'm ...