Skip to content

aurusov/poco-http-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Подготовка

Один раз генерим Makefile

git clone [email protected]:aurusov/poco-http-server.git
cd poco-http-server
mkdir build
cd build
cmake ..

Для Eclipse IDE for C/C++ Developers настраиваем один раз проект

  • Window - Preferences
    • Workspace - Save automatically before build = on
    • Indexer
      • Index all header variants = on
      • Index source and header files opened in editor = on
  • Window - Preferences - Workspace - Save automatically before build = on
  • File - Import - C/C++ - Existing Code as Makefile Project - Next
  • Existing code location = путь к корню скаченных исходников
  • Toolchain for Indexer Settings = Linux GCC
  • Finish
  • Project - Properties - C/C++ Build
    • Builder Settings - Build Directory = ${workspace_loc:/poco-http-server}/build
    • Behavior - Enable parallel build = on
  • Project - Build All
  • Run - Profile Configurations - C/C++ Application - New launch configuration - poco-http-server Default - Main
    • C/C++ Applications = путь к корню скаченных исходников/build/poco-http-server
    • Disable auto build = on
  • Run

Проверим работу сервера из консоли

curl localhost:5849/ping -v

Ответ должен быть 200, приблизительно таким

*   Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 5849 (#0)
> GET /ping HTTP/1.1
> Host: localhost:5849
> User-Agent: curl/7.47.0
> Accept: */*
> 
< HTTP/1.1 200 OK
< Date: Sun, 18 Sep 2016 14:08:12 GMT
< Connection: Close
< 
* Closing connection 0

About

Простейший HTTP-server на Poco

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published