httpserver Questions

4

Solved

There are various one-liner HTTP server commands, e.g. the best-known is probably python -m http.server. I'm looking for a similar command which would run a server that ignores the file path and se...
Wade asked 10/12, 2019 at 13:2

2

Solved

I'm trying out some PHP on my pc and made a little python server to host the files, one problem: It can't do POST, I always get the error 501. I've heard that you can implement POST in these server...
Ferdinana asked 7/3, 2021 at 8:19

2

Solved

I am trying to test a HTTP client that is written in C, that sends an HTTP POST request to a local sever on my computer. I have added the headers keep-alive in my POST request that looks like this ...
Homopolar asked 1/5, 2018 at 16:23

4

I'm using jersey's HttpServerFactory to create a simple embedded HttpServer that hosts a couple of rest services. We just needed something small quick and lightweight. I need to host a small static...
Szymanski asked 9/4, 2013 at 13:1

5

Solved

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 http-server -p 8000 ...
Crampton asked 1/2, 2016 at 9:50

2

Solved

I am working in Flutter, I have to create an Flutter app which create HTTP server, and serves our local phone storage. I am unable to find any Flutter plugin related to creating HTTP server in flut...
Dacha asked 15/8, 2020 at 13:44

3

Solved

I am writing a simple http server as part of my project. Below is a skeleton of my script: from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler class MyHanlder(BaseHTTPRequestHandler): ...
Theretofore asked 2/8, 2010 at 15:39

23

Is there a way to create a very basic HTTP server (supporting only GET/POST) in Java using just the Java SE API, without writing code to manually parse HTTP requests and manually format HTTP respon...
Maite asked 17/9, 2010 at 1:29

3

Solved

I hosted my local files with http server. Just install on my Mac HTTP server with command: npm install --global http-server Then I start this server in needed directory with the command: http-serv...
Malvoisie asked 7/8, 2020 at 8:10

15

Solved

Python's http.server (or SimpleHTTPServer for Python 2) is a great way of serve the contents of the current directory from the command line: python -m http.server However, as far as web servers go...
Contaminate asked 15/10, 2012 at 23:27

17

Solved

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 thir...
Garretgarreth asked 3/8, 2010 at 5:39

3

Solved

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: http.createServer(functio...
Bombard asked 23/6, 2015 at 15:13

6

Solved

I have a home-work to create a http server with java , a simple one and from scratch . After searching google and here ...i found this link "see the best response" with a very nice response ,so i c...
Hermilahermina asked 31/10, 2012 at 10:21

3

I have been trying to run a local http server for my HTML files after figuring out that the problem I was having with ng-view is that chrome does not support cross origin requests due to security r...
Overcoat asked 27/6, 2016 at 11:49

8

I have installed http-server globally. I launch it from myDir on localhost port 8080. In myDir I have index.html. If I request (from the browser) http://localhost:8080/ I get index.html, which is...
Jett asked 28/9, 2016 at 10:5

9

Solved

I have followed this website http://raspberrypihelp.net/tutorials/24-raspberry-pi-webserver to setup the HTTP server nginx on my Raspberry Pi and try to setup a site call example.com. But when I ru...
Coleencolella asked 3/10, 2013 at 18:0

4

I have created a basic AngularJS app in node environment. I am using http-server module for serving the files to browser. Everything is working fine except for the fact that I can't get to serve in...
Illona asked 23/4, 2017 at 11:34

3

Solved

I have implemented google sign-in with Firebase authentication in my Android app succesfully. As you see, I have logged-in with my account and it appears on the Firebase console. The function ...

3

Solved

I have a java echo httpserver up. It works with test sites, but the client code I'm working with fails to get the data. The server works perfectly with https://www.hurl.it/ The client works per...
Deach asked 31/7, 2016 at 0:19

5

Solved

I am trying to create a simple HttpServer in Java to handle GET requests, but when I try to get the GET parameters for a request I noticed the HttpExchange class does not have a method for that. D...
Cernuous asked 24/7, 2012 at 22:5

2

Solved

I'm trying to write a simple server in python. So after watching tutorial, I'm trying to import a few modules. from http.server import HTTPServer from http.server import SimpleHTTPServer As the ...
Egress asked 19/2, 2020 at 17:34

3

Solved

How can I use HTTPServer (or some other class) to set up an HTTP server that listens to a filesystem socket instead of an actual network socket? By "filesystem socket" I mean sockets of the AF_UNIX...
Kennethkennett asked 8/2, 2014 at 18:53

5

Solved

we use react-roucter-dom with http-server , when user loads main page and click navigation links , new pages will loaded perfectly , but when user refresh page in that route , it returns 404 . It m...
Elicia asked 4/2, 2019 at 7:48

7

Solved

What is the Python 3 equivalent of python -m SimpleHTTPServer?
Motorcar asked 30/10, 2011 at 7:22

4

Solved

I've two android applications on same LAN provided by WIFI : App (A) that open a listening socket on port 8033 App (B) that use HttpClient to access (A) on port 8033 How to make it possible th...
Showthrough asked 1/9, 2011 at 9:18

© 2022 - 2024 — McMap. All rights reserved.