1,296
questions
-2
votes
0
answers
25
views
Typescript code sending multiple sets of http headers for no apparent reason [closed]
Here is the code in question
//.
//. API message page
//.
else if(req.url?.startsWith('/APIMessage/')) {
const id = req.url.replace('/APIMessage/','');
const rows: any[] | undefined = await db....
0
votes
0
answers
23
views
LWIP HTTP Socket server -RTOS -tiva c
I am developing code uisng the LWIP socket API to build HTTP server , When the code runs i am able to get the socket read function only once later on no read request happens , but when checked in ...
0
votes
0
answers
37
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
79
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
51
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
0
answers
17
views
Authorizing Access to apache http application using mod_rewrite rules
i am a bit new to apache web server and mod_rewrite .
We are hosting a cgi application on apache web server We are trying to add an authorization check to verify whether the user has access to the ...
0
votes
1
answer
79
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
107
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
31
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
33
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
62
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
0
answers
213
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
239
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
156
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
72
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
0
answers
17
views
Is there a bug in the calculation of the winner in the Tic-Tac-Toe game React app? Could you assist me in identifying the mistake?
My game runs smoothly until I reach the stage of determining the winner. It only recognizes the winner when the X player wins, but not when the O player wins. I believe it's a bug related to the ...
0
votes
1
answer
171
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 &...
0
votes
0
answers
9
views
Configuring ALB in Existing Application
Currently have an application which comprises of a webserver and 2 appservers. If a user hits URL http://example.com/node1,it will send request to Appserver1
and if user hits http://example.com/node 2,...
1
vote
1
answer
196
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
0
answers
16
views
Moving my personal server from "http:" to secure "https:" version doesn't work with "HttpServer" in C# and "WebSocket" in javascript
Good morning,
I would like to move my web server from a non secure (http:) version to a secure one (https:). My server is an ".exe" file developped in C# using HttpServer and installed at ...
0
votes
0
answers
29
views
Upon submitting a html form, method POST an uncalled GET request follows causing an error in my node JS http server, why is this redirect happening?
I am running a node http server on Replit. The html page has a form element in it. The form's method is POST. When I click on the submit button 2 requests are made to the action. 1st the POST and then ...
0
votes
0
answers
69
views
Need a help to establish the connection between content server and sap server using archive link
I am new to SAP, and I am trying my hands on storing the sap archived files on a content server or archive server using an archive link. So we have a SAP server installed on a Windows machine, and we ...
0
votes
1
answer
141
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 ...
0
votes
0
answers
88
views
Can I drop a handler after a certain timeout on POCO Http Server?
I have an http server and I want to be able to drop connections and request handlers after a certain timeout. For example: I have a handler with some logic and this logic could hang for 60 seconds, in ...
2
votes
1
answer
200
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
55
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
111
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
209
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
234
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
674
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
83
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
178
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
207
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
0
answers
483
views
Intermittent "Operation not permitted", "Unable to start the server" error while running 'safaridriver'
I'm encountering an intermittent issue while trying to run safaridriver on macOS Sonoma. Here are the details of the problem:
I ran sudo /usr/bin/safaridriver -p0 --enable in the beginning.
After ...
0
votes
2
answers
66
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
69
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
73
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
2k
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
46
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
73
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 ...
3
votes
1
answer
351
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
376
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
68
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
461
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
...
1
vote
1
answer
807
views
Reporting automated malicious activities on webserver
I have been hosting a personal webserver for over a week now, and I have logged some suspicious requests. For my understanding these are automated scanning tools, vulnerability scanners, trying to ...
0
votes
0
answers
53
views
GET request from android being handled has POST - java
I'm writing an application in which both the server-side and client codes are written by me, I'm not using any frameworks (e.g Spring Boot etc). when I send an http GET request from my android device ...
0
votes
0
answers
169
views
Rust thread workers taking multiple jobs at once
Just trying to turn my single threaded web server into a multi-threaded one, this isn't the same one from the handbook, it's an extended one with more error handling, traits, etc. I did complete the ...
1
vote
0
answers
632
views
"read: connection reset by peer" response from my golang service troubleshooting
I am running multiple services in which communicate with each other using rest API. From time to time "connection reset by peer" is returned by a service (a few times a day, not that much). ...
2
votes
1
answer
125
views
TIdHTTPServer altering HTML
I'm using the TIdHTTPServer to host a large set of existing HTML files. However, I have a problem where it's returning altered HTML. Mainly, double quotes (“) are being replaced with jibberish like â€...
0
votes
1
answer
139
views
cannot find/kill (node) http-server process which is in infinite loop on macOS
i was running a local http server using the command:
./node_modules/.bin/http-server -a localhost dist
i think the code contained an infinite loop and since then, i cannot kill nor find the process.
i ...