Abstr:CGI specifies the interface protocol standard for the Web server to call other executable programs (CGI program. The Web server calls the CGI program to interact with the web browser. CGI programs can be written in any programming language,
Personal Summary: It takes 20 minutes to finish reading this postCall Me by Your name-node.js small BeautifulNode's appearance, really lets use JS's front-end engineer to meet the love, and then strides toward the back end, although sometimes will
This article describes how to easily create a node. js server (10): process POST requests. for details about how to process POST requests in js, refer to the following: our servers are not actually useful so far. next we will start to implement some
First, we use NodeJs to build a basic server.Index. jsCopy codeThe Code is as follows:Var requestHandler = require ("./requestHandler ");Var server = require ("./server ");Var route = {"/Hello": requestHandler. hello,"/Upload": requestHandler.
Easily create nodejs servers (10): Process POST requests, nodejspost
So far, our servers have no practical use. Next we will start to implement some practical and useful functions.
What we need to do is: select a file, upload the file, and view the
PHP webpage encoding problems. Analysis on the encoding of Apache and PHP web pages. Another article about MySQL character set: potatows.eeie.cn? P39 talking about Apache encoding, we need to analyze the issue of Apache and PHP webpage
Analysis of Apache and PHP webpage Encoding Problems
Let's talk about the encoding of Apache and PHP Web pages. There is also an article about the MySQL Character Set: http://potatows.eeie.cn /? P = 39Speaking of Apache coding, we need to involve
200 asked for help on how to set HTTPHEADER to upload files! (Additional Question) PHPcode $ boundary = md5 (time (); $ postStr = & quot; $ postStr. = & quot; -- & quot ;. $ boundary. & qu 200 asked CURL to set the HTTPHEADER file upload problem!
First, we use NodeJs to build a basic server.
Index. js
Copy codeThe Code is as follows: var requestHandler = require ("./requestHandler ");
Var server = require ("./server ");
Var route = {
"/Hello": requestHandler. hello,
"/Upload": requestHandler.
The header has been sent. Why does it still return false header ("Content-type: text/html; charset = gbk"); // send a header
$ A = headers_sent ();
Var_dump ($ a); // false
Why is false returned here ?????
Reply to discussion
Why is there a web frameworkWith the previous content, static, Dynamic Web server implementation, has mastered the client request to the server processing mechanism. In dynamic resource processing, the import module is applied according to the
So far, the server we're doing has no real use, and then we're going to start implementing some of the actually useful features.
What we want to do is: The user selects a file, uploads the file, and then sees the uploaded file in the browser.
First we use Nodejs to build a basic server first.
Index.js
Copy Code code as follows:
var RequestHandler = require ("./requesthandler");
var server = require ("./server");
var route = {
"/hello": Requesthandler.hello,
1. Why CGI?
As we have seen above, any HTML is a static webpage, and it cannot implement some complex functions, while CGI can be implemented for us. For example,. list files in a directory on the server and operate on the files in the directory. B.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.