Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.

Questions tagged [http-request]

Filter by
Sorted by
Tagged with
1 vote
2 answers
186 views

I’m designing a REST API where a single person can hold multiple account types. For example, one person might have both a CareProvider and a CareSeeker account. Each account type can have its own ...
Mizan Rifat's user avatar
1 vote
2 answers
2k views

Description I am working on an application using Angular (front-end) and Hibernate (back-end). My use case involves uploading multiple images, which I convert to base64 format and send as JSON with ...
Alejandro Corral's user avatar
2 votes
5 answers
3k views

In an HTTP application, I think about routing requests based not only on the path, but also based on the request body. For an example, think about the following two different body schemas for a PUT ...
Jonathan Herrera's user avatar
2 votes
3 answers
195 views

I apologize in advance for the lack of knowledge. Please feel free to edit this question to use the appropriate terminology if it is not correct. I recently wrote a .NET core application that is ...
javery's user avatar
  • 61
0 votes
0 answers
48 views

I’m writing a web application with an Angular client and a Pyramid/Python server. I need to dynamically interface with an external cloud application, with two requirements: When the end user approves ...
thomasc's user avatar
0 votes
1 answer
545 views

When I'm sending a request, the raw log looks something like this: GET / HTTP/1.1 User-Agent: PostmanRuntime/7.36.3 Accept: */* Cache-Control: no-cache Postman-Token: 3d4eba45-388c-462c-a174-...
DevelBase2's user avatar
1 vote
1 answer
703 views

I wanted to implement login system using flask framework. I managed to do this using sessions and set them to expire after 31 days and it works (sessions are created using server secret key, timestamp ...
Paweł Michoń's user avatar
1 vote
2 answers
280 views

I am creating an API proxy that acts as a bridge between our frontend application and an AWS opensearch server. This proxy has additional features such as retries and timeouts. One of the features I'm ...
lightning_missile's user avatar
0 votes
3 answers
2k views

The contents of search string are typically sent as part of the URI query: https://domain.name/resource?search=something+i+am+searching+for Those same contents can be sent as the value of a custom ...
SunSparc's user avatar
  • 185
1 vote
1 answer
879 views

I am facing this problem and would like to review my approach to it here. A Client sends an HTTP request to Service A and is expecting an answer. Service A is connected to DB A. When it receives a ...
Solidak's user avatar
  • 167
2 votes
2 answers
3k views

I'm struggling to understand how to improve the performance for an HTTP Request that comes with a huge body. Now, let me explain better what I mean with performance! Imagine I have a DB with the table ...
Jolly's user avatar
  • 123
4 votes
2 answers
6k views

I have an update API (PUT/PATCH) entity/{id} to update a certain entity in my DB. Let's say: entity { id: number, // Primary key, unique, not null content: text, parentId: number // Foreign key, ...
Leo von Barbarosa's user avatar
0 votes
1 answer
240 views

I have Items and Im creating an API which validates different aspects of an Item. eg: whether it has a valid height, width or depth. My request body looks like { height_check: true, width_check: ...
vvv's user avatar
  • 33
-1 votes
3 answers
4k views

I have a campaign, which has URL as a child. If I make a patch request to add a list of 3 URLs out of which first one is invalid URL, second URL already exists in the campaign and we do not want to ...
Akshay Vijay Jain's user avatar
1 vote
1 answer
3k views

I'm developing an API that given a few parameters, reads the given data, transforms it and returns it as JSON. Eg. (some logic included) Request: POST /myApi/exportAsText Content-Type: application/...
Ruben Antonio Nunes Lousada's user avatar
2 votes
1 answer
2k views

I have seen download managers manage to resume HTTP downloads from where they stopped. How are they able to resume downloads? Is it related to the Accept-Range Header? Or are there other mechanisms ...
Vipin Menon's user avatar
1 vote
1 answer
261 views

A GET should never change data on the server- use a POST request for that I heard this recommendation countless times over the internet and always try my best to conform. But how should I implement ...
Elgin Cahangirov's user avatar
0 votes
1 answer
175 views

Background: different developers are building an e-commerce system using Spring. Some are working on the user facing arm, others are working on the CMS, while the other group are working on the vendor ...
I Want Answers's user avatar
3 votes
2 answers
2k views

In a Restful API, it is better to use GET to list a collection. However, in our scenario, we allow people query with a list of parameters (say CodeList) and then return details. As we allow upto 500 ...
daxu's user avatar
  • 141
0 votes
1 answer
417 views

I have a resource called Client and it has the following attributes id, name, redirect URLs(ArrayList). class Client{ int id; String name; List<String> redirectUrls; } I have all CRUD ...
Vijay Kambala's user avatar
-4 votes
2 answers
160 views

I see two possible interpretations of the semantics of request methods defined in the HTTP specification RFC 7231: The intended effect of a request method is fully defined by the HTTP specification (...
Géry Ogam's user avatar
0 votes
2 answers
263 views

The intended effect (semantics) of the POST method is resource specific, e.g. executing a command with arguments: POST /command HTTP/1.1 {"parameter-1": "argument-1", "...
Géry Ogam's user avatar
6 votes
3 answers
2k views

So the recommendations for using GET vs POST in a REST API that I've read on stack overflow are geared almost exclusively toward CRUD operations involving a database. However if you are simply writing ...
erotavlas's user avatar
  • 267
0 votes
2 answers
2k views

It has been said that "PUT is idempotent": The difference between PUT and POST is that PUT is idempotent: calling it once or several times successively has the same effect (that is no side ...
Mate Mrše's user avatar
2 votes
2 answers
326 views

Background Tertiary to this question, I have been building my own imageboard that prevents [for example] duplicate images from being downloaded again and again on behalf of the client. How I do this, ...
Anon's user avatar
  • 3,649
7 votes
3 answers
3k views

When a user signs up to a web app, they often get a confirmation email. This email will contain a link. Once the user clicks the link, the app confirms the user's account as correctly associated with ...
Dashiell Rose Bark-Huss's user avatar
0 votes
0 answers
333 views

A lot of times there's a parameter in a partner API endpoint like success_url where you provide the partner API with an endpoint on your internal API to redirect the client. For example, on Stripe you ...
Dashiell Rose Bark-Huss's user avatar
0 votes
4 answers
953 views

I have code that checks if the scanned qr code exist in the database and if it exist it will insert data into another table but I did it in the HTTP GET request, is this alright to do it this way or ...
James Ariel Indo Pates's user avatar
9 votes
5 answers
1k views

In designing a RESTful api the problem arises as to how best to allow resources to be moved between collections. Renaming a resource could be done by using PATCH but this is not the same thing as ...
Jon Guiton's user avatar
1 vote
3 answers
2k views

Here's my problem. I want to make fast, subsequent requests to a REST API endpoint (/todos/:id/position) that have side effects on other resources. As an example of 5 fast subsequent requests: PATCH /...
Maxime Dupré's user avatar
0 votes
1 answer
73 views

Given a website, our customers will pick a spot on their website and we record an xpath to that location. Our software is DNS integrated, similar to cloudflare, and we manipulate the origin's html ...
ericraio's user avatar
2 votes
1 answer
1k views

I have an restful app that uses PUT to replace existing data. For example, there's a user management url https://myserver/users, and to replace user data, for example, to change the name and the ...
BUKTOP's user avatar
  • 131
1 vote
1 answer
154 views

From RFC 7231 "Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content" Section 4.2.2 "Idempotent Methods": A request method is considered "idempotent" if the ...
Will's user avatar
  • 712
2 votes
1 answer
273 views

I've looked through similar questions and tried to Google what I'm trying to do, but I haven't found anything concrete. What I'm trying to do: where I work, we use an HMI/SCADA system that displays ...
Yuriy F's user avatar
  • 123
3 votes
1 answer
6k views

I think I am just look for a bit of code review advice. It might possibly be a methodology question? Essentially when I am pulling data (usually from a REST request), I generate a service, then ...
MZawg's user avatar
  • 443
1 vote
1 answer
2k views

I would like to understand what happens in a request which includes a .pfx certificate to authenticate to client to the server. I know how to implement this in python or use it in postman, but I don't ...
user3933039's user avatar
64 votes
10 answers
13k views

This is kind of similar to the Two Generals' Problem, but not quite. I think there is a name for it, but I just can't remember it right now. I am working on my website's payment flow. Scenario ...
turnip's user avatar
  • 1,701
-1 votes
1 answer
62 views

Is it a good idea to make http patch more general and also create a new property or even a new persistent entity if it does not exist. The patch could be general and send http body for different ...
Niklas Rosencrantz's user avatar
2 votes
1 answer
330 views

I have a Raspberry Pi with a ConBee 2 (ZigBee) interface connected. The ConBee provides a websocket I can connect to to get push notifications on sensor changes. And I want to forward those ...
Oystein's user avatar
  • 131
2 votes
1 answer
2k views

I am trying to build the best PUT possible that allows modifying multiple entities upon single requests using java jersey. The idea is to send a request with multiple entity ids as @PathParam values ...
masber's user avatar
  • 327
2 votes
1 answer
126 views

I am writing a C# client SDK to a REST Api. This SDK sends JSON-serialized models to the API, and implements a first level of verification of the parameters. If the verification fails, it throws an ...
Toto's user avatar
  • 155
1 vote
1 answer
440 views

Let's consider the following scenario. I need to access a resource hosted on server X. I want to get this resource in a Y format, so along with my request I send the Accept: Y header. Unfortunately X ...
Opal's user avatar
  • 275
3 votes
1 answer
912 views

I have a NodeJs backend that interacts with MySQL database. Let us assume that I have a schema similar to this: Book id name Author id book_id name So, I have two tables named Book and ...
Amir Saleem's user avatar
1 vote
1 answer
855 views

Assume a Javascript plugin, for a developer, that's included on their website. <script src="https://external.com/plugin.js"></script> The plugin makes a XHR request to a 3rd party ...
Luka's user avatar
  • 119
-2 votes
2 answers
106 views

I design and works on lot of projects involves REST APIs. But one question is always occur to me if it is acceptable way to do REST. So according to REST manuals online, REST is build upon two major ...
kuldeep.kamboj's user avatar
0 votes
0 answers
123 views

My application has a grid with a list of Car objects from a third party system [{id: 1, make: "Ford", model: "Focus", ...},...] The user can select a Car and use its data (after some transformation) ...
James's user avatar
  • 285
1 vote
2 answers
398 views

I'm not sure what the correct procedure is, when you have a question based off an answer you read but it is a seperate question that arose because of the answer provided. the answer in question Which ...
Kevin's user avatar
  • 113
1 vote
1 answer
2k views

I have a class Person. Person { String firstName; String lastName; String Date dob; String email; String mobileNumber; String address; } To add a person, I have following REST APIs: POST /...
Prashant Bhardwaj's user avatar
1 vote
0 answers
535 views

I've the following project structure (simplified): domain dto view In domain model is kept. dto classes are used to pass data from domain to view. And in view I've a controller and a handful of *req, *...
Opal's user avatar
  • 275
18 votes
6 answers
6k views

I am researching before starting to work on an API for a web-service I am building. The goal is to be very quick and easy to adapt and use for other developers but fairly hidden for clients using a ...
gaugau's user avatar
  • 321