1,298 questions
2
votes
1
answer
44
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 ...
2
votes
1
answer
82
views
Browser stops requesting images from Node Server
I’m running a simple test server to test out a few concepts. For testing purposes, I have a directory with a structure like this:
data/
index.html
images/
image1.png
image2.png
...
0
votes
2
answers
185
views
Function strcmp() doesn't find the match with the same values
I have a function that returns a response depending on the method and the path of the request.
When I use strcmp(method, "GET") it gives me -67, even if the method is exactly the same (I ...
5
votes
2
answers
136
views
Using sizeof(pointer) with strncpy
I have this parser, I want to use the size of the pointer (that is 8 bytes) in the function strncpy, I was able do it with the "method" part, why does it crash the "path" part ?
It ...
0
votes
1
answer
47
views
problem -> npm http-server dowloading file
I'm new to npm and I tried to start a new simple project. Initially it just had index.html with h1 Hello world. When I try to start a server using http-server ./index.html it works to some extent but ...
1
vote
1
answer
142
views
Boost Beast (Asio) HttpServer and HttpClient: recommendations on io_context usage
I've recently implemented an async HTTP Server and Client based on C++ Boost Beast (V.1.83). I'm new to the io_context approach and even if it all seems to be working fine I'm not at all convinced of ...
0
votes
0
answers
35
views
Apache HttpCore 5.3.3 SSLContext Configuration Issue: Server Timeout with NeedClientAuth
I am encountering an issue with HttpServer from Apache HttpCore after upgrading the library from version 5.2.3 to 5.3. When client authentication (setNeedClientAuth(true)) is enabled and the ...
0
votes
0
answers
55
views
HMTL image isn't shown in browser after sending it with the httpExchange responseBody
I'm working on a small com.sun.net.httpserver project where i want to show images a user has uploaded.
I already managed to get the image and safe it onto the file system.
Now i want to send the image ...
-1
votes
2
answers
695
views
HTTP/1.1 header parser received no bytes
I get this error all the time tried everything switching JVMs and stuff changing code itself but nothing really works Chat GPT also doesn't help. If someone know what's the dead with this please help. ...
0
votes
1
answer
28
views
How to get formdata file from httpserver request in flutter
In my flutter application I've created a http server using dart io. I'm uploading file from web frontend using formdata using fetch api call. On the server side(flutter) how to get uploaded file?
-1
votes
1
answer
44
views
Node http server not serving JS per HTML instructions - Uncaught SyntaxError: Unexpected token '<'
I can GET my html to render, but the console throws a SyntaxError:
Uncaught SyntaxError: Unexpected token '<' (at index.js:1:1)
The contents of my index.js file are:
console.log('javascript loaded')...
0
votes
1
answer
95
views
Why does the single quote in my code replace another character?
I am trying to write a HTTP server in C.
My code:
Supports the connection of a client to a server
Allows the server to read the HTTP request sent by the client.
Parses the start line of the HTTP ...
0
votes
0
answers
66
views
GO application, as a windows service, does not generate pdf from html when running chrome headless
Context:
Windows Service -> HTTP GO Application -> "Exec" Package -> CMD Command -> Chrome Headless --print-to-pdf
Summary:
When trying to convert the page "a.html" to &...
1
vote
1
answer
1k
views
How to build and run a Angular Webapp
I have a problem. I need to build my angular application. I don’t mean just to start it. I mean to build it with ng build (in production) and then to start it to test it. It should be like a first ...
0
votes
1
answer
169
views
TIdHTTPServer hangs when deactivated
First, please refer to a similar but not exactly duplicate question. That question was solved by uninstalling a defective Windows update on Windows server, which is not my case at all (as I'm on ...
0
votes
0
answers
115
views
ionic run in production mode
I am using angular 8 with ionic (mobile).
I have problem when running the application, opened in chrome browser, in production mode, while there is no problem when opening in development mode.
I ...
0
votes
0
answers
165
views
Python ThreadingHTTPServer is not actually multithreaded
I'm tryin to create a multithreaded HTTP server in Python 3.10 using ThreadingHTTPServer. However, ThreadingHTTPServer doesn't seem to be working multithreadedly - each GET request waits for the ...
1
vote
2
answers
97
views
JavaScript file not found when HTML and JS are in separate directories
I've created a simple TS project with the following file structure:
dairyproducts.github.io/
├── package.json
├── public/
│ ├── images/
│ ├── index.html
├── src/
│ └── index.ts
├── dist/
│ └── ...
0
votes
1
answer
93
views
Cannot connect to http python server from node-red
Context
I've defined an http server with a python script, this server is used to then make GET calls from NODE-RED and thus obtain information present on a configuration JSON file. The python server ...
0
votes
1
answer
116
views
Simple HTTP server not writing answer to client
I am writing a simple HTTP server in C from the CodeCrafter challenge Build your Own HTTP server. The request i am addressing is the following:
The tester will then send two HTTP requests to your ...
0
votes
1
answer
354
views
Netty Server not processing HTTP Requests after using Server Bootstrap for customizing
I have a spring reactive-based Microservice which is using Netty Server version 4.1.101.Final. It was working completely fine and processing all the HTTP requests that I fired. Now I want to catch ...
1
vote
0
answers
48
views
Golang serving static files with chi router error
package main
import (
"log"
"log/slog"
"neo-foci-web/handlers"
"net/http"
"os"
"github.com/go-chi/chi/v5"
&...
1
vote
0
answers
56
views
make TCPServer/HTTPServer not send the [FIN, PSH, ACK] packet
Have a python web server listening on port 8080, based on socketserver.TCPServer. But there are intermittent failures in the communication between the client and the server, esp. when the server sends ...
0
votes
1
answer
103
views
HTTP 1.1 pipelining and processing order
I am currently implementing http pipelining in my HTTP 1.1 server. The response order corresponds to the order in which the requests are received. But can/should the PROCESSING of the individual ...
1
vote
1
answer
454
views
Disable zstd compression in Micronaut 4.x per configuration
Given the following stack trace in a minimal base image with read-only filesystem it is not possible to start my micronaut application that uses e.g. HTTP endpoints.
The problem is that the native JNI ...
1
vote
3
answers
494
views
how to stop accepting new requests before closing existing ones?
This runs without error:
const app = express();
const server = app.listen(3900, '0.0.0.0', () => {
console.log('listening...');
});
process.once('SIGINT', () => {
console.log('got SIGINT.'...
1
vote
0
answers
596
views
Rust TCP Server: Connection Reset by Peer During Concurrent Requests
I'm experiencing "connection reset by peer" errors when making multiple concurrent requests to my Rust TCP server. The server seems to handle some requests successfully, but others result in ...
0
votes
0
answers
102
views
Starting a Grizzly HTTP server on a fargate container
String baseUri = http://127.0.0.1:8080/abc
HttpServer grizzlyServer = startServer(baseUri);
while (grizzlyServer.isStarted())
{
TimeUnit.SECONDS.sleep(1);
loopCount++;
loopCount = ...
0
votes
1
answer
335
views
How to write data to client and then exit process in golang http server?
I'm writing an http server with self-update feature, the steps are:
client post to the server with the new executable, as the http body
server replace itself with the bytes
server echos a string &...
1
vote
1
answer
357
views
Nginx resolver with proxy pass and variables not functioning
I would like to setup a DNS resolver so when a host in the upstream is not yet resolved (e.g. DNS server is up yet), the Nginx server will not crash. I am passing the URLs as environment variables.
...
0
votes
1
answer
239
views
How to use EnableFullDuplex() method in golang 1.21
As Golang documentation, stated, EnableFullDuplex() method on http.ResponseController permits handlers to continue to read from the request while concurrently writing the response.
I want to write a ...
2
votes
1
answer
317
views
What is a default port range for server.port=0 in spring boot application?
What is a default port range for server.port=0 in Spring Boot application?
I'm using spring-boot 2.7 (with default tomcat server) and working with java 11.
Or the range differs depending on OS?
0
votes
0
answers
80
views
Java httpserver cannot send large files
There are no error on the server side, but clients like Chrome and the application that needs the file can't download it. The server works with smaller files and it basically runs like this:
package ...
0
votes
1
answer
129
views
No Access to external https source despite CORS is enabled for al in vite.config
If have the following configuration for vite:
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import * as fs from 'fs';
// https://vitejs.dev/config/
export default ...
-3
votes
1
answer
359
views
go http.ListenAndServe doesn't wait for connections looks like it exiting [closed]
I have a simple app that I expect to be a daemon that waits for connections, but it looks like it doesn't listen and I even can't find it in the process list.
Code:
package main
import (
&...
1
vote
1
answer
303
views
http-server and react-router not working correctly in production
I am trying to migrate my react app from self-hosted on nginx to railway.
Everything worked perfectly fine on nginx, but I am having issues on deploying it on railway using http-server.
Nginx config ...
0
votes
1
answer
2k
views
Run locust tests sequentially and asynchronously without waiting for response
I want to run locust tests on httpserver post API where the tests should continue to post the request to the service sequentially without waiting for a response from the pending posts.
Let's say there ...
0
votes
1
answer
157
views
How to diagnose Request_Cacnelled in HTTPERR log
I have an ASP.NET web API app hosted on IIS 10, there are tons of Request_Cacnelled log appear in HTTPERR log.
I suspect that may be due to some hang-on requests but after checking HTTP Service ...
0
votes
0
answers
339
views
Unable to load default xmlsec-crypto library
I am trying to setup SAML based SSO using mod_auth_mellon on apache HTTP running RHEL 7.9, but getting these errors in apache logs. Can someone please help me here? I have all the libraries and ...
1
vote
1
answer
319
views
Creating a local HTTP listener in Delphi
I have a windows desktop app written in Delphi 11 that I am integrating with Xero accounting.
The first step is complete, which is using ShellExecute to open a browser with a generated url that gives ...
0
votes
2
answers
89
views
Python HTTPServer that only responds to me?
I have a python http server implemented which only responds to get request to serve data plots to me remotely showing me what my photovoltaic system is doing at home. I have noticed some failed ...
0
votes
0
answers
79
views
How to send on-demand data to client from the server
I have implemented a TCP server using asyncio that receives data from the client at regular intervals, let's say every 30 seconds. Now, I aim to send data to the client on-demand. To achieve this, I ...
0
votes
1
answer
112
views
Java SimpleFileServer disable directory listing
For a minimalistic SimpleFileServer pseudocode below, how to disable directory listing?
var server = HttpsServer.create(new InetSocketAddress(port), 2)
server.createContext("/file", ...
2
votes
2
answers
4k
views
Initial loading of a video file in Media3 ExoPlayer takes too long
I have a local HTTP server where I'm hosting an MP4 file (about 50MB). I set up the following Composable in my app:
@Composable
private fun VideoItem(
url: String,
modifier: Modifier = ...
1
vote
0
answers
58
views
Java HTTP Server file upload implementation problem
I have been working on creating a Java HTTP server that serves a basic HTML page to a browser client. The server is hosted at http://127.0.0.1:8080/upload. However, I've encountered challenges when ...
0
votes
0
answers
116
views
How should HTTP/1.1 servers handle requests containing Content-Length headers with empty values?
RFC 9110 defines the Content-Length ABNF rule like this:
Content-Length = 1*DIGIT
(i.e. 1 or more ASCII digits)
The same also says this:
a sender MUST NOT forward a message with a Content-Length ...
4
votes
1
answer
500
views
Java http server does not stop immediately
I have the following example code which starts built-in Java http server, issues a request to it using built-in Java http client and then tries to stop a server.
The issue is: stop(delay) method ...
0
votes
1
answer
735
views
What is [ERR_PACKAGE_PATH_NOT_EXPORTED] exactly referring to in this case?
I am trying to serve the following http_server.js files on my virtual machine that I have set it up on digitalocean.
Why am I getting this error message?
this is my http_server.js file:
// Import ...
0
votes
1
answer
85
views
What is best (most easiest and elegant) way to send message to client after long period of time?
I am creating resource booking system with server and client applications. Client application is simple command line tool that can be used to add and remove resources into and from the system and book ...
1
vote
0
answers
628
views
ESP32, how can I reply to an http request in 2 (or more) steps?
I need to reply to an HTTP request in some steps (can't concatenate the output string and send it at once).
To illustrate my needs, I do this with PHP on my PC to solve the same problem:
<?php
...