Skip to content
Raphael Kim edited this page Oct 11, 2016 · 6 revisions

About libSHTTP

  • libSHTTP is an simple and socket based HTTP/1.0 engine for C++ that supported GET and POST methods.
  • Source codes are compiles under most of gcc includes MinGW.
  • Project is belongs to Code::Blocks (cbp) and there's not supported Makefile in currently.

Why Code::Blocks ?

  • Code::Blocks is supporting multi-platform with gcc and WxWidget engine.
  • People doesn't need to know how to build it in console (include M-Sys) even mostly doing configure.
  • Just open cbp file in Code::Blocks, and build it. That's done.
  • Especially, some people are really hard to use M-sys or console based make by security reason (inc. my case). So I am strongly recommend this project file to manage sources.

How to build ?

  • Open libSHTTP.cbp file with Code::Blocks.
  • Select target Debug or Release.
  • Whatever you choose, it will builds libshttp.a in target directories.
  • Each target directory is :
    • Debug: ./bin/Debug
    • Relase: ./bin/Release

How to use ?

  • In case of use this built library ( libshttp.a ) in Code::Blocks or gcc-make, just set path to compile & archived directory or copy libshttp.a file into your importing directory.
  • Set include path to libSHTTP's "src" directory or copy all header files to your source code position.
  • And decice a link to shttp ( -Lshttp ). Code::Blocks and gcc-make automatically find name "libshttp.a" in your decided directories.
  • If you need examples, see here: Examples.

64bit availed ?

  • Sure, you could compile and use it in 64bit OS.
  • There's no dependency in 64bit OS/Platforms if socket already ported in your system.

Bugs

  • Cookie may not automatically removed when its time life ran out.
  • Duplicated cookie still not handled.
Clone this wiki locally