Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I saw one http server written in Bash recently. However, writing a web server is kind of the "Hello, World!" of networking. Have you tried searching for http servers in your favorite search engine? Here's an old list:
Hello,
I have to develop a very simple HTTP server running under embedded Linux. The server gets HTTP requests, reads information from the target and send it back to the client. Security/Encryption is not required.
Can you provide a simple code sample ?
You've been here TEN YEARS now; you should have read the LQ Rules and "Question Guidelines" at this point, and know that this isn't the place to come for handouts. We will be happy to HELP you if you have an actual problem, but don't ask us to write your code or look things up for you....Google can give you links to many samples.
Further, you've received answers and been asked questions over the years, but haven't followed up in many of your threads.
i've seen op's*other thread and understand the suspicions.
however this question here i find valid (assuming they're asking existing software).
but it also has been answered already: click the gist in post #2.
The server gets HTTP requests, reads information from the target and send it back to the client.
That is a bit more than running apache, simplehttp, or anything like that. In my mind, to do it correctly, that is going to require a program. AND its going to require explaining what the user means by 'information', 'target', and 'client'.
If the request was 'serving up a text file' or 'serving up the directory' then I would agree that those small web servers in the gist would be good answers.
Last edited by szboardstretcher; 02-17-2017 at 02:43 PM.
Reason: My damn E key is sticking today
ok i guess this is above my paygrade.
i assumed that this:
Quote:
Originally Posted by zvivered
The server gets HTTP requests, reads information from the target and send it back to the client.
is the definition of server:
get request from me: hey, i want website.
read information from target - the target being an html document.
send it back to the client - send the content of the html doc back to the client.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.