Skip to content
Magenaut

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

httpserver

CSS loads but doesn’t do anything

October 9, 2022 by Magenaut

I’m trying to make a basic multiplayer game with Socket.IO, p5.js and NodeJS, hosting it on Replit.

Categories Node.js, Q&A Tags css, html, httpserver, node.js, p5.js Leave a comment

Get and Set a Single Cookie with Node.js HTTP Server

October 8, 2022 by Magenaut

I want to be able to set a single cookie, and read that single cookie with each request made to the nodejs server instance. Can it be done in a few lines of code, without the need to pull in a third party lib?

Categories Node.js, Q&A Tags cookies, httpserver, javascript, node.js Leave a comment

Http-Server Command Not Found After Install in NPM

October 4, 2022 by Magenaut

i installed http-server with npm globally but still I get “command not found”

Categories Node.js, Q&A Tags httpserver, node.js, npm Leave a comment

http-server command not found

October 2, 2022 by Magenaut

I’m trying to run a basic http-server to test out some html files and I keep running into the same error.

Categories Node.js, Q&A Tags httpserver, node.js Leave a comment

Get request body from node.js’s http.IncomingMessage

October 2, 2022 by Magenaut

I’m trying to implement a simple HTTP endpoint for an application written in node.js. I’ve created the HTTP server, but now I’m stuck on reading the request content body:

Categories Node.js, Q&A Tags httprequest, httpserver, node.js Leave a comment

node httpServer EADDRINUSE and next port

September 30, 2022 by Magenaut

I try to increment a port number based on 8000 if the port is busy with EADDRINUSE, and I thought it’s as easy as the below:

Categories Node.js, Q&A Tags httpserver, node.js Leave a comment

Node.js static file server logic (using Connect middleware)

September 30, 2022 by Magenaut

Let’s say I have the following filesystem structure:

Categories Node.js, Q&A Tags connect, httpserver, middleware, node.js, static-files Leave a comment

node.js make request and response global for HTTP server?

September 30, 2022 by Magenaut

I’ve just started on node.js and ran through http://nodebeginner.org/index.html. Great start tutorial but I really want to know is it possible to make both request and response ‘global’ so any module loaded for the current incoming request can access these… rather than injecting.

Categories Node.js, Q&A Tags httpserver, javascript, node.js Leave a comment

npm http-server with SSL

September 29, 2022 by Magenaut

I’m using the npm package “http-server” (https://www.npmjs.com/package/http-server) to set up a simple webserver, but I cannot get it to use SSL. My command in package.json is

Categories Node.js, Q&A Tags httpserver, node.js, npm, ssl Leave a comment

Create WebSockets between a TCP server and HTTP server in node.js

September 28, 2022 by Magenaut

I have created a TCP server using Node.js which listens to clients connections.
I need to transmit data from TCP server to HTTP server again in Node.js possibly through a Websocket (socket.io).

Categories Node.js, Q&A Tags httpserver, node.js, socket.io, tcpserver, websocket Leave a comment
Older posts
Page1 Page2 Next →

Recent Comments

  • silverplugins217 on How to add placeholder for contact form7 for dropdown?
  • Shreyas Ikhar on How to add a custom CSS class to core blocks in Gutenberg editor?
  • Magenaut on How to call function on timer ASP.NET MVC
  • Ebaad Uddin on How to call function on timer ASP.NET MVC
  • michealSmith07 on Is there a way to dynamically refresh the less command?

Tags

.net adobe-illustrator adobe-photoshop ajax arrays asp.net asp.net-core asp.net-mvc bash c# css database django eloquent express html java javascript jquery json laravel laravel-4 laravel-5 laravel-8 linux list mongodb mongoose mysql node.js npm pandas php python python-3.x react-hooks react-native react-router reactjs redux regex sql string typescript wordpress
© 2023 Magenaut • Built with GeneratePress