Commit Graph

14 Commits

Author SHA1 Message Date
Francesco Saverio Giudice
75f4a44b58 2009-04-07 00:41 UTC+0200 Francesco Saverio Giudice (info/at/fsgiudice.com)
* harbour/contrib/examples/uhttpd/uhttpd.prg
    + Added _HTTP_RESPONSE headers
    * Renamed defineServerAdresses() function to defineServer()
      as now define all _SERVER variables
    * ParseRequest() now uses uhttpd_SplitUrl() to define URI parts
    * Host now is defined according with RFC2616
    * HRB session now is defined as UHTTPD-SESSION to avoid collision with
      SESSION in cookies
    ! uhttpd_AddHeader() renamed to uhttpd_SetHeader() to be conformed to
      RFC2616 that wants that a header variable is defined only once.
      See cookie.prg changes.
      Headers now are contained in a Hash instead of an array
    * fixed as per above also uhttpd_GetHeader() / uhttpd_DelHeader()

  * harbour/contrib/examples/uhttpd/session.prg
    * uhttpd_AddHeader() -> uhttpd_SetHeader()
  * harbour/contrib/examples/uhttpd/cgifunc.prg
    * in function uhttpd_SplitUrl() added URI hash field
  + harbour/contrib/examples/uhttpd/cookie.prg
    * To conform to RFC2616 now if Set-Cookie has more than one value than
      is created a comma separated list of cookie-name=cookie-value
    * uhttpd_AddHeader() -> uhttpd_SetHeader()

  * harbour/contrib/examples/uhttpd/modules/info.prg
    + Added _HTTP_RESPONSE display

  * harbour/contrib/examples/uhttpd/modules/cookie.prg
  * harbour/contrib/examples/uhttpd/modules/showcounter.prg
  * harbour/contrib/examples/uhttpd/modules/tableservletdb.prg
    * uhttpd_AddHeader() -> uhttpd_SetHeader()
2009-04-06 22:42:34 +00:00
Francesco Saverio Giudice
cb865b0c4c 2009-04-03 01:20 UTC+0200 Francesco Saverio Giudice (info/at/fsgiudice.com)
* harbour/contrib/examples/uhttpd/uhttpd.prg
    + added Application Root folder
      Also as ini command and -a command line switch
    * fixed starting path
    ! fixed CGI/HRB execution path
      now uhttpd runs CGI and HRB pointing to document root
      as execution path. Pay attention to update existing cgi and
      hrb modules.
    + added console rows and cols to alter console display
      either as ini command than as -cr and -cc command line switch
    ! fixed $(APP_DIR) and $(DOCROOT_DIR) macro substitution
      now it is possible to run uhttpd executable from a different
      folder specifying uhttpd.ini path, application root path and
      document root path that may differ from default
    * updated help screen

  * harbour/contrib/examples/uhttpd/uhttpd.ini
    + added new commands
  * harbour/contrib/examples/uhttpd/session.prg
    * work in progress to fix error in session handling
  * harbour/contrib/examples/uhttpd/modules/tableservletdb.prg
    * updated path of test.dbf that now is relative to document root
      and not to application path
2009-04-02 23:21:18 +00:00
Viktor Szakats
dc7cdeb762 2009-03-07 12:38 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.prg
    ! Fixed recently introd problem with path sep translation.

  * source/common/hbgete.c
    + Enabled Darwin support.

  * contrib/examples/uhttpd/modules/showcounter.prg
    ! Protected whole code with GD_SUPPORT.
2009-03-07 11:51:14 +00:00
Francesco Saverio Giudice
923dfd277b 2009-03-06 04:13 UTC+0100 Francesco Saverio Giudice (info/at/fsgiudice.com)
* harbour/contrib/examples/uhttpd/uhttpd.prg
    * Updated uHTTPD (Work in progress)
      * Updated to work in Linux.
      * Fixed PRIVATE use and threads as per Przemek suggestions
      * Marked WIN_SYSREFRESH() with USE_WIN_ADDONS define
      * Changed WIN_TIMEZONEBIAS() to hb_UTCoffset()
      * Changed WIN_SETENV() to hb_SetEnv()
      * Minor changes
  * harbour/contrib/examples/uhttpd/uhttpdc.c
    * Marked WIN_SYSREFRESH() as only windows function
    - Deleted WIN_SETENV()
    - Deleted WIN_TIMEZONEBIAS()
    + Added hb_UTCoffset()
  * harbour/contrib/examples/uhttpd/socket.c
    * Guarded for only windows build
  * harbour/contrib/examples/uhttpd/session.prg
    * Changed FileDate() to hb_FGetDateTime()
  * harbour/contrib/examples/uhttpd/uhttpd.ini
    * Minor fixes
  * harbour/contrib/examples/uhttpd/modules/showcounter.prg
  * harbour/contrib/examples/uhttpd/modules/tableservletdb.prg
    * fixed Linux build
  + harbour/contrib/examples/uhttpd/uhttpd-inet.hbm
  + harbour/contrib/examples/uhttpd/uhttpdgd-inet.hbm
    + Added as temporary files to build uhttpd under Linux
      (they haven't -gui flags that give error as per Przemek
      note, instead add -gtxwc as standard gui)
  ; NOTE:
    Przemek please check if hb_UTCOffSet() it is correct, then we have to move in
    other place.
    Tested all samples and they works.
    Modules build need to be fixed (Viktor?) but hrb are built. Need to be copied
    manually to ../home/cgi-bin
2009-03-06 03:17:04 +00:00
Viktor Szakats
c88b1bda14 2009-03-05 21:24 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* contrib/hbbtree/tests/test.hbm
  * contrib/examples/guestbk/guestbk.hbm
  * contrib/examples/pe/pe.hbm
  * contrib/examples/dbu/dbu.hbm
  * contrib/examples/terminal/terminal.hbp
  * contrib/examples/hscript/hscript.hbm
  * contrib/examples/uhttpd/modules/allmod.hbm
  * contrib/examples/rl/rl.hbm
  * utils/hbdoc/hbdoc.hbm
  * utils/hbmk2/hbmk2.hbm
  * utils/hbtest/hbtest.hbm
  * utils/hbrun/hbrun.hbm
    - Removed -n switches no longer necessary.
2009-03-05 20:25:42 +00:00
Viktor Szakats
8b0d5311af 2009-03-02 17:53 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* utils/hbmk2/hbmk2.prg
    + Automatically switching to -hbcmp mode if /gh switch is used.
    + In -hbcmp mode it will pass /o option directly to Harbour.

  - contrib/examples/uhttpd/modules/bldhrb.bat
  + contrib/examples/uhttpd/modules/allmod.hbm
    + Replaced batch file with hbmk2 make file. It will build 
      all .hrb files and place them to cgi-bin dir.
2009-03-02 16:53:53 +00:00
Viktor Szakats
eb1767f8f3 2009-03-01 18:16 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* INSTALL
  * make_b32.bat
  * doc/gmake.txt
  * bin/postinst.bat
  * bin/hb-mkdyn.bat
  * make_gnu.bat
  * contrib/hbfimage/readme.txt
  * contrib/examples/uhttpd/modules/bldhrb.bat
  * source/vm/Makefile
  * source/rtl/console.c
  * source/compiler/gencobj.c
  * utils/hbmk2/hbmk2.prg
  * utils/hbmk2/examples/winapi.hbp
  - config/win/bcc32.cf
  + config/win/bcc.cf
    * Long time TODO done: Renamed bcc32 compiler name to bcc.
      bcc32 is still accepted by make_gnu.bat, but will be 
      removed in the future, so it's recommended to update 
      your local settings to use:
      set HB_COMPILER=bcc

  - config/dos/bcc16.cf
    - Deleted bcc16 compiler support. I didn't work since ages,
      and Harbour doesn't support 16-bit compilers anyway.
2009-03-01 17:19:29 +00:00
Francesco Saverio Giudice
d6c2e99434 2009-02-10 01:38 UTC+0100 Francesco Saverio Giudice (info/at/fsgiudice.com)
* harbour/contrib/examples/uhttpd/uhttpd.prg
    * Updated uHTTPD (Work in progress)
      + Added support for Sessions
      * Fixed ini file support
  * harbour/contrib/examples/uhttpd/cgifunc.prg
    * Fixed some functions
  + harbour/contrib/examples/uhttpd/session.prg
    + Session class
  * harbour/contrib/examples/uhttpd/modules/info.prg
    + Added display of SESSION vars
    + Added a simple example of SESSIONS
  * harbour/contrib/examples/uhttpd/hbmk_b32.bat
  * harbour/contrib/examples/uhttpd/hbmk_b32.bat
    + Added new files
  + harbour/contrib/examples/uhttpd/sessions
    + Added folder used in samples
2009-02-10 00:39:40 +00:00
Viktor Szakats
b9faa70ee8 2009-02-04 23:00 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* bin/hb-func.sh
  * bin/hb-mkslib.sh
  * bin/hbmk.bat
  * bin/hbmk_b32.bat
  * bin/hbmk_vc.bat
  * bin/pack_src.sh
  * bin/postinst.bat
  * contrib/examples/uhttpd/modules/bldhrb.bat
  * contrib/gtwvg/Makefile
  * contrib/hbct/ctflist.txt
  * contrib/hbgf/hbgfwin/Makefile
  * contrib/hbgf/Makefile
  * contrib/hbodbc/Makefile
  * contrib/hbole/Makefile
  * contrib/hbtpathy/Makefile
  * contrib/hbwhat/Makefile
  * contrib/hbwin/Makefile
  * contrib/make_gcc_all.sh
  * contrib/mtpl_b32.mak
  * contrib/mtpl_gcc.mak
  * contrib/mtpl_gcc.sh
  * contrib/mtpl_vc.mak
  * doc/dirstruc.txt
  * doc/es/dirstruc.txt
  * doc/funclist.txt
  * doc/gmake.txt
  * harbour-wce-spec
  * harbour-win-spec
  * make_b32.mak
  * make_gcc.mak
  * make_gcc.sh
  * make_gnu.bat
  * make_gnu.sh
  * make_gnu_xmingw.sh
  * make_gnu_xmingwce.sh
  * make_vc.mak
  * Makefile
  * mpkg_tgz.sh
  * source/vm/Makefile
  * source/vm/vmmt/Makefile
  - config/w32
  + config/win
    * HB_ARCHITECTURE w32 -> win transition. Pass 1.
2009-02-04 22:02:35 +00:00
Francesco Saverio Giudice
a1cb9aa400 2009-01-30 03:24 UTC+0100 Francesco Saverio Giudice (info/at/fsgiudice.com)
* harbour/contrib/examples/uhttpd/uhttpd.prg
    * Updated uHTTPD (Work in progress)
      + Added HRB caching (set #define HRB_ACTIVATE_CACHE .T. to enable)
      + Added support for Cookies
      * Formatted
      ! Renamed all public functions with uhttpd_ prefix (TOCHECK)
      + Added support for array content in POST variables
      * Optimized some code
  + harbour/contrib/examples/uhttpd/cgifunc.prg
    + Some helper function moved here from uhttpd prg and added
      some functions of mine
  + harbour/contrib/examples/uhttpd/cookie.prg
    + Cookie class
  + harbour/contrib/examples/uhttpd/modules/cookie.prg
    + cookie sample module
  + harbour/contrib/examples/uhttpd/home/postsample.html
    + POST example
  * harbour/contrib/examples/uhttpd/uhttpd.ini
    + Added new script alias for cookie sample

  * harbour/contrib/examples/uhttpd/hbmk_b32.bat
  * harbour/contrib/examples/uhttpd/home/index.html
  * harbour/contrib/examples/uhttpd/home/testxmldb.html
  * harbour/contrib/examples/uhttpd/modules/bldhrb.bat
  * harbour/contrib/examples/uhttpd/modules/info.prg
  * harbour/contrib/examples/uhttpd/modules/showcounter.prg
  * harbour/contrib/examples/uhttpd/modules/tableservletdb.prg
    * Updated for new function prefix and some formatting
2009-01-30 02:26:55 +00:00
Viktor Szakats
ef3da0603c 2009-01-29 14:25 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* source/rtl/gtwvt/gtwvt.c
    ! Fixed to #undef _WIN32_WINNT before setting it.
    ; TOFIX: hbwhat has this problem in almost all of its source
             files.

  * contrib/examples/uhttpd/modules/bldhrb.bat
  * contrib/examples/uhttpd/modules/showcounter.prg
  * contrib/examples/uhttpd/hbmk_b32.bat
  * contrib/examples/uhttpd/hbmk_vc.bat
    * Minor.
2009-01-29 13:26:40 +00:00
Viktor Szakats
628ebab0b8 2009-01-26 00:52 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* contrib/make_b32_all.bat
   * contrib/make_gcc_all.sh
   * contrib/make_vc_all.bat
   + contrib/hbssl
   + contrib/hbssl/Makefile
   + contrib/hbssl/common.mak
   + contrib/hbssl/make_b32.bat
   + contrib/hbssl/make_vc.bat
   + contrib/hbssl/make_gcc.sh
   + contrib/hbssl/hbssl.h
   + contrib/hbssl/hbssl.ch
   + contrib/hbssl/ssl.c
   + contrib/hbssl/sslctx.c
   + contrib/hbssl/sslrand.c
   + contrib/hbssl/tests
   + contrib/hbssl/tests/hbmk_b32.bat
   + contrib/hbssl/tests/hbmk_vc.bat
   + contrib/hbssl/tests/test.prg
     + Added Harbour bindings to OpenSSL.
       Work in progress, but it's theoretically already functional.
       To build, set your HB_DIR_OPENSSL or HB_INC_OPENSSL envvar.
     ; TOFIX: Makefile openssl autodetection should be adjusted.

   * contrib/examples/uhttpd
     ! Fixed SVN attributes. (except for /home dir)
2009-01-26 00:00:56 +00:00
Francesco Saverio Giudice
97d48cbd6d 2009-01-20 00:20 UTC+0100 Francesco Saverio Giudice (info/at/fsgiudice.com)
+ harbour/contrib/examples/uhttpd/modules/info.prg
    + New sample showing server variables
  * harbour/contrib/examples/uhttpd/home/index.html
  * harbour/contrib/examples/uhttpd/readme.txt
  * harbour/contrib/examples/uhttpd/uhttpd.prg
    * updated for new sample
2009-01-19 23:19:32 +00:00
Francesco Saverio Giudice
8f7a4429ae 2009-01-19 23:39 UTC+0100 Francesco Saverio Giudice (info/at/fsgiudice.com)
+ harbour/contrib/examples/uhttpd
  + harbour/contrib/examples/socket.c
  + harbour/contrib/examples/uhttpd.prg
  + harbour/contrib/examples/hbmk_b32.bat
  + harbour/contrib/examples/readme.txt
  + harbour/contrib/examples/home
  + harbour/contrib/examples/home/cgi-bin
  + harbour/contrib/examples/home/counter.html
  + harbour/contrib/examples/home/css
  + harbour/contrib/examples/home/css/base.css
  + harbour/contrib/examples/home/favicon.ico
  + harbour/contrib/examples/home/images
  + harbour/contrib/examples/home/images/ajax-loader.gif
  + harbour/contrib/examples/home/index.html
  + harbour/contrib/examples/home/js
  + harbour/contrib/examples/home/js/ajax.js
  + harbour/contrib/examples/home/testajax.html
  + harbour/contrib/examples/home/testxmldb.html
  + harbour/contrib/examples/home/xsl
  + harbour/contrib/examples/home/xsl/based.xsl
  + harbour/contrib/examples/home/xsl/basep.xsl
  + harbour/contrib/examples/logs
  + harbour/contrib/examples/modules
  + harbour/contrib/examples/modules/bldhrb.bat
  + harbour/contrib/examples/modules/showcounter.prg
  + harbour/contrib/examples/modules/tableservletdb.prg
  + harbour/contrib/examples/modules/testajax.prg
    + Uploaded first version of uHTTPD server.
    ; NOTE:
      This is first version of uHTTPD (micro HTTPD server) based
      on a sample shared from Mindaugas (thanks!).
      Actually is only for windows and BCC32.
      To build use hbmk_b32.bat
      Please read readme.txt before start to use.
2009-01-19 22:40:07 +00:00