Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
145 views

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 ...
Marc's user avatar
  • 15k
0 votes
1 answer
130 views

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 ...
Green Grasso Holm's user avatar
0 votes
1 answer
48 views

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 ...
SinaMobasheri's user avatar
0 votes
1 answer
54 views

This is my postman setup; for the request object; public class UploadRequest { public List<IFormFile> File { get; set; } public int EntityType { get; set; } public ...
TyForHelpDude's user avatar
0 votes
2 answers
67 views

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 ...
Bitts's user avatar
  • 7
-2 votes
2 answers
195 views

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 ...
Julieth Bautista's user avatar
0 votes
1 answer
392 views

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 ...
VaclavJirka's user avatar
-1 votes
1 answer
222 views

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. ┌──────┐ ...
Honza Zidek's user avatar
  • 21.8k
0 votes
1 answer
68 views

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 ...
Rafael Adel's user avatar
  • 7,759
0 votes
1 answer
71 views

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 ...
정재연's user avatar
1 vote
1 answer
332 views

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 ? ...
A_AhMaD's user avatar
  • 55
0 votes
1 answer
370 views

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 ...
Ronald Torres's user avatar
1 vote
1 answer
181 views

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 ...
BarelyDeveloper's user avatar
0 votes
1 answer
78 views

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 ...
Michael's user avatar
  • 108
-1 votes
1 answer
81 views

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 ...
noMoreBeans's user avatar
2 votes
1 answer
161 views

I'm working with Ballerina and I've implemented a request interceptor for my HTTP service. In this interceptor, I need to access the HTTP method (GET, POST, PUT, etc.) used in the incoming request. I'...
Mindula's user avatar
  • 321
1 vote
0 answers
14 views

EXCEPTION ::"class java.lang.Integer cannot be cast to class java.lang.Boolean (java.lang.Integer and java.lang.Boolean are in module java.base of loader 'bootstrap')" @RestController public ...
Shivam Vishwakarma's user avatar
2 votes
0 answers
159 views

I created a HTTP API on that uses the non-standard QUERY method. It works fine locally but on Google Cloud Run, every QUERY request gets a 502 response. Making the exact same request with POST works ...
jfhr's user avatar
  • 1,143
1 vote
0 answers
104 views

I got my data for login and register successfully but I am not getting my data after using get request.I don't understand why; can anyone help? I want that when I use get method, I should get my data ...
Aman Maddheshiya's user avatar
0 votes
1 answer
85 views

I'm trying to get a token back via the Nordigen API (https://ob.nordigen.com/api/v2/token/new/). However, despite setting the httpMethod = "POST", I keep getting a 405 back stating : "...
Pospa's user avatar
  • 3
-1 votes
1 answer
94 views

I'm trying to post something, but always get error. articlesRouter.post('articles/:target', async (req, res) => { const target = req.params.target.replaceAll("_", " ") ...
Dmitry's user avatar
  • 9
-2 votes
1 answer
379 views

I am using Spring Boot for creating rest API. I learnt about PUT, PATCH, POST. PUT is for updating the resource and if Id is not present then it creates. Patch is for updating part of the resource and ...
Lolly's user avatar
  • 36.9k
0 votes
1 answer
197 views

The first axios.get is getting data from local server and then pass into axios.post into 3rd party server. If i pass 'data' (hardcoded) into axios.post, 3rd party server send back response as success ...
615's user avatar
  • 21
-1 votes
1 answer
170 views

I have the following Viewset: class My_ViewSet(viewsets.ModelViewSet): serializer_class = My_Serializer queryset = My_Object.objects.all() def list(self, request): # The code here ...
SWater's user avatar
  • 443
1 vote
1 answer
277 views

Lets consider a REST API for a backend application that does not have any DDBB dependencies or connections. For example, a python backend app which uses a machine learning model binary that takes a ...
lazcuenqui's user avatar
-1 votes
1 answer
326 views

I've created an HTTP Proxy with PHP. It works well for simple HTTP requests where it receives the request, passes it to the target, passes the target's response to the client and closes the connection....
Reza Alizade's user avatar
0 votes
1 answer
697 views

Here is my Spring Controller with the @PatchMapping : @PatchMapping("/mode/{numClient}") public Response<Object> mode( @PathVariable Integer numClient, @RequestBody ...
Neyt's user avatar
  • 490
0 votes
1 answer
45 views

I'm trying to understand how file management works in Django Rest Framework, and a question lingers in my mind: Why does Django use PUT to update files? Is it possible to do the same with the PATCH ...
iaggoCapitanio2's user avatar
2 votes
1 answer
395 views

I have read several of the other answers and have tried a couple of suggestions, but no matter what I have tried to this point I am unable to exclude OPTIONS as an allowed http-method for TOMEE/TOMCAT ...
Jay Blanchard's user avatar
0 votes
1 answer
1k views

I have a Blazor WebAssembly and C# web API hosted on IIS and When trying to send a PUT or DELETE request to my API I get this cors error: While i have this in My Program.cs: This is the response ...
Jovi Simons's user avatar
0 votes
1 answer
601 views

I've been told to use POST method to read data instead of the GET method. The tool I'm using is Postman. How can I use POST to fetch data/resources from the server?? I'm testing using any of the ...
functester02's user avatar
0 votes
1 answer
923 views

I have got a such issue: I do have got antMatcher​ in Spring Security. And I have an opportunity to set http method GET/POST/PUT/PATCH/DELETE for url mapping for my filter. So requests with some ...
Bogdan Zaranik's user avatar
0 votes
0 answers
2k views

I am using .NET Framework 4.5. I can't able to use IHttpClientFactory , so I decided to use single static HttpClient instance but the problem is ,if I add a Header to Client for one request it affect ...
Hari E's user avatar
  • 490
0 votes
1 answer
452 views

In symfony 3 this code below worked fine. Upgrading to symfony 5 it doesn't. Controller: public function deleteAction(Request $request, ACRGroup $aCRGroup) { $form = $this->...
Matt Welander's user avatar
1 vote
1 answer
811 views

I created an API with method GET using express which is working fine. following is the API app.get('/healthcheck', (_req, res) => { res.status(200).send({ state: 'Healthy', timestamp: new ...
Divya Singh's user avatar
0 votes
1 answer
526 views

I am working on this CS50W project. When using the fetch API to send POST requests to the server, everything worked fine. After I changed the method to PUT, or any other unsafe methods, things stopped ...
welly's user avatar
  • 33
0 votes
1 answer
3k views

EDIT2: GETs don't send JSON data. That's my problem. Working on sending it at URL data. It's not letting me delete this post either. EDIT: I figured out that it's not a preflight problem using ...
J Kast's user avatar
  • 9
1 vote
2 answers
1k views

I have to call an external API via a HttpGet that requires me to send a file in the body. I realize that this is a bad API design but since it's external, I have no influence over it and cannot change ...
xeraphim's user avatar
  • 4,705
0 votes
1 answer
453 views

ETA. Okay, based on some advice I'd received, I used go build main.go rather than go run main.go This puts the main.exe in my project folder (which I excluded) rather than putting a temporary main....
YvetteS's user avatar
1 vote
1 answer
2k views

Let's say I've got route /posts. It only implements GET HTTP method. If someone tries to access it with different, existing method (POST, PUT, etc.) I return 405. What should I return in case someone ...
engray's user avatar
  • 111
0 votes
1 answer
1k views

So I was testing my website and I tried connecting with the TRACE http method. In response I got a massive string. I don't know what it is. Does anybody know what could it be and if it's some sort of ...
Volkov's user avatar
  • 11
1 vote
0 answers
253 views

In a project, we are using AWS Kinesis Firehose for Data Ingestion. To access it from the Browser and without Authentication I set up an AWS API Gateway to set up a public endpoint. To Ingest Data ...
Lucas Christiani's user avatar
1 vote
2 answers
4k views

I like to use the correct HTTP methods when I'm creating an API. And usually it's very straightforward. POST for creating entities, PUT for updating them, GET for retrieving etc. But I have a use-case ...
Shawn-Ross's user avatar
0 votes
1 answer
3k views

I am developing the mobile recharge website using angular,angular material,springboot ,this code is for admin, who can able to update the plans in website. And the problem is with the edit option. ...
Keerthi Senthil's user avatar
0 votes
1 answer
2k views

I have Cloudflare free SSL enabled on a website and I need to change the HTTP OPTIONS Method to allow only GET and POST. I've used this command in SSH to check what methods are available: curl -X ...
Valentin's user avatar
3 votes
1 answer
387 views

This is a followup of an older question. I have a resource Car which have fields plate and color. We have a REST client updating all the fields of the car: PUT /cars/:id { plate: "ABC-1234"...
Lukáš Křečan's user avatar
8 votes
1 answer
2k views

I got several alerts in the last two days bcs our service responded 5xx in a large percentage of the requests (tipically offhours when we have zero to low traffic anyway). When I checked the ...
tg44's user avatar
  • 860
0 votes
2 answers
2k views

I'm building an ASP.NET Core 5.0 Web API application as I mentioned in the title I have an issue when trying to delete a record from the database; I'm getting an error 405 Method Not Allowed response ...
Wassef Hassine's user avatar
0 votes
1 answer
465 views

I've been reading about CORS and pre-flight requests, and have understood that basically it is a type of an OPTIONS request that is sent before making the actual request and if the server permits it ...
ansme's user avatar
  • 463
3 votes
1 answer
4k views

I've been doing some HTTP methods and header research recently if we should use GET with basic authorization instead of POST when submitting? HTTP Methods The GET method requests a representation of ...
iProgram's user avatar
  • 6,637

1
2 3 4 5
8