Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simple HTTP request handler #9

Open
ivyWANG958 opened this Issue Feb 27, 2019 · 0 comments

Comments

Projects
None yet
2 participants
@ivyWANG958
Copy link
Collaborator

ivyWANG958 commented Feb 27, 2019

Use SimpleHTTPServer for request handler in Terminal.

local Terminal

input:

$ cd 馃憠[path to working folder here]
$ python -m SimpleHTTPServer

output:

Serving HTTP on 0.0.0.0 port 8000 ...

Open browser and input:

http://localhost:8000

VS code

Find Terminal on the navigation bar and open new terminal.

Follow the steps above, no need to change direction at this time.

change port

corresponding input change to: python -m SimpleHTTPServer 8080

For python3

corresponding input change to: python3 -m http.server or python -m http.server

Warning

SimpleHTTPServer is not recommended for production. It only implements basic security checks.

@hupili hupili added the tips label Mar 11, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can鈥檛 perform that action at this time.