Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
b3b343777yJust read the post stuff from the request header? Or am I wrong? π€ you want to write your own http server in c++, right?
-
@b3b3 I think so. Not entirely sure.
I'm still new to C++ and webservers. I am using Apache and I have some example from a school assignment but it looked like they made the http formatting with C++. Which then runs on Apache. -
b3b343777yI once wrote an http server in c++ with boost::asio and it was just waiting for a request to come in, then read the requested site (like /index.html or whatever) and the post/get data from the header data, then reading the index.html from the file, eventually replace variable placeholders or whatever, and just send back the result. Not sure if I can help you with thatπ€π
-
@b3b3 I'll look into that. It sounds straight forward the way you explain it. Thanks π
If I run into trouble I might chat you up if that's okay. -
@b3b3 it's just for personal use so I don't really mind of it's not the most elegant solution.
As long as the data is received in my program it's all good. π -
b3b343777yhttps://youtu.be/3Xqk6iEHGkE this might be interesting for you. Its in German but the basic idea should be self explaining
Related Rants
-
gururaju53*Now that's what I call a Hacker* MOTHER OF ALL AUTOMATIONS This seems a long post. but you will definitely ...
-
linuxxx65This guy at my last internship. A windows fanboy to the fucking max! He was saying how he'd never use anythi...
-
creedasaurus60Another dev on my team just got a new machine. Before he came in today I made two separate USB installers and ...
!rant
Starting my first small c++ project with website interaction on an Ubuntu server as practice for next semester. Any good recommendations to get user input from a webpage using only c++ (there can be html within the c++ program of course) and libraries?
I have once worked with an httpd-deamon and got user info from the url but I want a user to be able to fill in 2 textboxes and submit them using a button.
Plain text is good enough and it will only be used by 2 people once every week or so.
undefined
first project
practice
ubuntu server
linux
web interaction
c++