68,038 questions
-1
votes
0
answers
37
views
In a chain of sequential HTTP calls (A→B→C→E), if each service appends a value to a header, will the final response to A show all accumulated headers? [closed]
I'm building a chain of 4 sequential HTTP calls where each service (A→B→C→E) appends "1" to a custom request header (like Trace-Id) before forwarding to the next service:
text
A sends to B: ...
-3
votes
0
answers
47
views
React frontend works publicly on IIS but Node.js backend API not loading (works locally) [closed]
I have deployed a React frontend and Node.js backend on IIS (Windows Server).
Setup
Frontend: React
Backend: Node.js (Express)
Server: IIS
Frontend is accessible publicly and loads correctly
...
-2
votes
0
answers
34
views
MetOffice DataHub Connection Issue [closed]
I'm trying to access the Met Office's DataHub API via the following:
https://data.hub.api.metoffice.gov.uk/sitespecific/v0/point/hourly?latitude=52&longitude=-1
I have supplied the API Key, but I ...
Advice
0
votes
4
replies
22
views
With python's aiohttp serving both HTTP (port 80) and HTTPS (port 443), how can we know which port requests come from?
This current question relates to an earlier question that was asked here in stackoverflow around 5 years ago:
aiohttp how to expose two port 80 and 443 for http and https?
That question received a ...
Advice
1
vote
0
replies
13
views
Does HTTP really use UT1?
I just had the need to parse an HTTP Expires header and I was somewhat surprised that it wasn't an ISO format and especially by the fact that it names GMT as the time zone.
Nowadays the term "GMT&...
0
votes
0
answers
96
views
Go http client.do returns error and nil response
I'm currently working on a web crawler in Go, and it found this URL: https://git.btlr.sh. When checking whether this domain has a robots.txt file, the crawler throws an error.
I've replicated the ...
0
votes
1
answer
31
views
Boomi HTTP Callout works in request phase but not response phase (Gravitee 3.3.13)
I’m using Boomi API Management with an underlying Gravitee 3.3.13 gateway.
I attached an HTTP Callout Policy to an API proxy.
When attached to Request, the external API is called successfully.
When ...
0
votes
0
answers
31
views
Why does the overall average response time for long connections (keep-alive) exceed that for short connections (close) in performance tests?
Why does the overall average response time for long connections (keep-alive) exceed that for short connections (close) in performance tests? Why is this, and how can it be optimized?
wrk performance ...
1
vote
1
answer
46
views
Apache, mixing http and https virtual hosts [closed]
I am hosting 6 websites. One is for my personal use, and access is intended to be https. So a self-signed cert is just the ticket. I created the cert, and that virtual host works on https.
However, ...
3
votes
2
answers
69
views
Is PUT method the right choice for creating a new row in table?
I have always ignored the existence of PUT method and used POST for requests with body. Which actually isn't a semantically invalid way. But I came to this question in this specific recurring case:
...
0
votes
0
answers
42
views
Safari redirect to authenticated page succeeds, but Safari rejects new authentication cookie
We've integrated with our client to enable seamless authentication across our sites without having to set up OAuth or any other federated stuff. This works for all browsers except Safari, where the ...
1
vote
0
answers
50
views
Why does the `must-revalidate` Cache-Control directive enable shared caches to store and reuse responses for requests with an Authorization header?
From the point of view of normative references — RFC 9110: HTTP Semantics and RFC 9111: HTTP Caching — what is the rationale of having the must-revalidate cache directive have the effect of allowing ...
3
votes
1
answer
69
views
What is the difference between a Timeout from URLError and from TimeoutError
This is my Python3 code:
try:
with urllib.request.urlopen(myURL, timeout=1.0) as page:
response = page.read().strip().decode("UTF-8",errors='replace')
except TimeoutError as e:
...
1
vote
1
answer
46
views
Spring - RestClient - Http to POJO when information is only in headers?
I have a server that I make rest calls towards that returns part of its information through headers instead of putting it all in a body, sadly I do not own the code that runs on the server so I can't ...
-1
votes
2
answers
162
views
CGI in Perl: how to access the original HTTP headers
A simple proxy in Perl runs as a CGI on the webserver of my ISP.
It's purpose is to forward https GET and POST to a http webserver running on my PC.
With that https works without the need of any TLS ...
2
votes
1
answer
142
views
fix blocking issue when trying to parse HTTP request in java
I'm trying to parse HTTP requests for fun and I'm currently stuck because the method I'm using blocks until input is received.
byte[] buffer = new byte[1024];
while (!request.isDone()) {
int n = ...
Advice
0
votes
2
replies
79
views
How to handle variable-length header values when parsing HTTP requests in Java?
I'm building an HTTP server and parsing request headers. My current code fails when the Host header includes a port number because I'm splitting on :.
Current Code:
String[] header = line.split(":...
0
votes
3
answers
163
views
HTTP POST time out after 5 minutes in Chrome / 10 minutes in Firefox
With my Angular front-end and Quarkus back-end running locally without infrastructure like Nginx, Kubernetes, etc. I am uploading large files which consistently times out after 5 minutes in Chrome and ...
0
votes
0
answers
68
views
AuthRetryableFetchException + HandshakeException after app resumes from long background (Flutter, supabase_flutter ^2.10.3)
After the app stays in the background for 6–8 hours or overnight, all Supabase requests fail with:
AuthRetryableFetchException(message: HandshakeException:
Connection terminated during handshake, ...
0
votes
0
answers
99
views
How to send HTTP POST request with multipart/form-data with the form-data in initial request in .NET Framework?
I have to upload a file to an embedded device running an API.
First, I tried to write methods to do this in a test project. This works great:
private static async Task<HttpResponseMessage?> ...
Advice
1
vote
1
replies
75
views
Why don't we use HTTP for everything instead of SMTP?
We can fully emulate SMTP with current technology. Clearly, I can send a JSON containing the title, the body, and any other email information. The forwarding and replying mechanism can just be regular ...
Best practices
1
vote
3
replies
125
views
What is the best option for handling multiple clients for a server in C?
I know that the current options are: creating a thread, a fork or a non-blocking socket?
What are the main advantages and disadvantages of all options?
What would be the recommendation for a small ...
Best practices
0
votes
1
replies
43
views
Server to Client under multipart/form-data
Given some object:
class Foo {
metadata_field1: ...,
metadata_field2: ...,
file: Blob
}
Let's also consider definitions where Foo has multiple Blob attributes, or an array of Blobs, or even ...
Best practices
0
votes
2
replies
45
views
Is it normal to send a JSON response with a list of objects where the properties of the objects differ based on their type?
My client has requested that I provide a response from my API that looks like the following:
{
"entity_type": "company",
"registered_date": "2020-01-01",...
Advice
0
votes
3
replies
50
views
What is the point of cache busting since it requires to download the HTML data?
For decades, cache busting has been promoted as a "good practice" basically everywhere, to the point where it is also declared as such in MDN.
I am not sure I understand why, considering ...
0
votes
1
answer
103
views
How do I specify a "q" parameter for www.googleapis.com/drive/v3/files
In the Google Slides API sample, it says to do a GET request:
GET https://www.googleapis.com/drive/v3/files?q="mimeType=application/vnd.google-apps.presentation"&fields=files(id,name,...
1
vote
0
answers
51
views
Why do some Android devices not send the "Accept" header when requesting images from push notifications?
I'm working in a team that supports the delivery of image files over the web. We've noticed that some requests for images (via image URLs) coming from mobile devices do not contain the Accept header ...
3
votes
3
answers
120
views
Python requests.request returning garbage
Calling an api. For almost all calls the response comes clean but for a few there is garbage in the returned json. Executing the garbage one in the Firefox browser with the same parameters returns ...
0
votes
2
answers
137
views
My authentication setup requires a setTimeout before redirect to allow cookies to write in the browser
Authentication flow:
User is redirected back to my site (to /auth/callback) after logging in with a 3rd party. The redirect back includes query params. The React function on the callback page sends ...
2
votes
1
answer
53
views
How to send streamed response to client using Timer.periodic in dart?
I am struggling to send streamed response to the connected client. The code below is the example HttpServer used to respond to the client, the client code is also mentioned using a custom class to ...
1
vote
2
answers
103
views
Problem with Content-Type in a (.net) StringContent
I have a request (going to an APIM endpoint.) From Postman the test runs just fine, but from my code it fails with a 400. I looked at the requests in fiddler and the only difference is this:
// This ...
Advice
3
votes
4
replies
98
views
PHP HTTP server processing to immediately send HTTP response, while continue backend processing in separate process
I'm implementing some PHP application on server A that receives a request from a client (browser), which will lead to a HTTP request to be sent to another server B. The client resuest is then answered ...
0
votes
1
answer
102
views
Invalid status line exception trying to establish local gRPC connection with Grpc.Net.Client
I am trying to form a plain HTTP connection to a local gRPC server. This worked using the deprecated Grpc.Core package, but with Grpc.Net.Client I receive:
Exception calling "Wait" with &...
0
votes
0
answers
81
views
How can I capture and inspect outgoing HTTP requests from a Flutter WebView or video player?
I'm developing a Flutter app that loads a web page containing an embedded video player.
When the page loads, the browser internally makes several HTTP requests (for example, .m3u8 or .ts files), but I ...
0
votes
1
answer
111
views
Scrapy handle status 202
I'm quite new to web scraping, and in particular in using Scrapy's spiders, pipelines...
I'm getting some 202 status from some spider requests' response, hence the page content is not available yet
...
0
votes
0
answers
40
views
Azure Bot Framework: App Registration permissions needed to post messages back to Teams conversations
I'm building a Microsoft Teams bot using n8n that receives messages via webhook and responds back to the conversation. The bot successfully receives incoming messages and obtains an access token from ...
2
votes
1
answer
77
views
In my Blazor SSR app., my service method is failing when calling an Azure HTTP trigger
In my PayPalService.cs file, I have a public method in the class that calls an Azure HTTP triggered method in PayPalFunctions.cs file that keeps failing due to an error: "Method not Allowed"....
0
votes
1
answer
120
views
Cargo ignores custom, HTTP registry
I have a .cargo/config.toml file that configures a custom, HTTP git-based registry (hosted on Bitbucket) to replace crates.io:
[source]
[source.artifactory]
registry = "http://bitbucket/scm/<...
0
votes
1
answer
76
views
Getting 413 for a large request node application running via PM2
A legacy application is running v12.18.0, and when presented with a large GET request it gives me
413 Request Header Fields Too Large
I have checked the same request by running it on a different ...
0
votes
0
answers
54
views
I don't fully understand the difference between CL.TE and TE.CL in HTTP request smuggling
I am doing labs in PortSwigger and the topic is HTTP request smuggling. And I am working on CL.TE and TE.CL. And for these labs :
https://portswigger.net/web-security/request-smuggling/exploiting/lab-...
0
votes
1
answer
46
views
Allowing a filter query in a PUT endpoint that updates a set
I'm designing a REST API that provides an integration layer to an underlying system I have no control over.
Without going in to detail, in this system, there are products with default prices. A custom ...
0
votes
0
answers
52
views
Cannot get client running on React to send HttpOnly Cookie with JWT back to SpringBoot Server
I'm at my wits end here. The browser is not providing the cookie on my fetch() request. I'm running a SpringBoot server on port 8081 and have set up my CORS like so:
@Bean
CorsConfigurationSource ...
2
votes
1
answer
145
views
Why am I getting a different HTTP response for a seemingly same request between curl, C# HttpClient Win10 and C# HttpClient Win11
I'm trying to download a webpage from a specific website (Bandcamp). I'm getting different results although the request seems the same:
On Windows 10, using a HttpClient in C#: I'm getting "...
0
votes
1
answer
75
views
Webhook requires pooling on client side after data is pushed to webhook endpoint?
I do not understand the real difference between webhooks and traditional pooling of endpoints because to me webhooks still require pooling.
**Traditional case: Client asks, server tells
**
In a ...
2
votes
0
answers
58
views
optional query parameter in http signature of proto rpc is not mapped as expected
I was under the impression that given an rpc like below
rpc FetchResource(GetResourceRequest) returns (ResourceResponse) {
option (google.api.http) = {get: "/v1/resource/{resource_id}/group&...
0
votes
1
answer
71
views
Is it possible to paste Multi-Line Long text into HTTP Response?
I am trying to pass text like
"Video Transmission & internal Recording
No Filters
1x 11 Handheld Monitor 1x 19 Monitor"
--> so 5 and more likes with several empty line inbetween as ...
0
votes
1
answer
104
views
HTTP Request Through Ncat in Powershell Windows
I am using Ncat to send raw HTTP requests to the backend JS server. I will add here the backend and frontend files. We write ourselves, which is the goal of the task.
I have installed Ncat and I send ...
0
votes
0
answers
86
views
How to remove header 'Host' using supertest
I have condiiton in my http server that check if req.headers["host"] is undefined or not. I am using supertest and mocha to send GET request. I tried to use unset("Host"), but ...
0
votes
1
answer
212
views
Curl POST request error: Unknown content type: application/json
SOLUTION: Got rid of the --header flag, added json= to the beginning of the data set.
I'm attempting to update some settings in a qBitTorrent Docker container via the WebUI's included API. I've ...
0
votes
1
answer
168
views
POST requests from Cloud Run arriving as GET requests in my Django REST API
I have a serverless pipeline on Google Cloud. It consists of three total steps:
A video uploader that sends videos to Google Cloud Storage. Working fine.
An eventarc + pub/sub trigger that fires ...