68,063 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
0
answers
47
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
64
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
votes
0
answers
64
views
CBLAS directory not
I am trying to install CBLAS directory on my server where the instructions say the following.
In src/Makefile, modify the following variables to your system settings:
CBLASDIR = directory of BLAS ...
1
vote
1
answer
38
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
153
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
132
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
78
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
2
answers
110
views
HTTP POST time out after 5 minutes Chrome / 10 minutes Firefox
I have an Angular front-end and Quarkus back-end running locally on my machine, without any infrastructure like nginx, Kubernetes, etc.
Using the application, I am uploading large files (order of ...
0
votes
0
answers
54
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
89
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
74
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
42
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
44
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日",...
1
vote
0
answers
106
views
I want to open a web server with ESP32
I'm not good at English, so I used a translator.
Please understand that we cannot show all the code.
Currently, I am trying to open AP mode in ESP32 and send HTML information to the connected person.
...