FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Function from mod_harbour to Harbour
Posts: 253
Joined: Fri Feb 03, 2006 04:21 PM
Function from mod_harbour to Harbour
Posted: Fri Apr 28, 2023 04:55 PM
Hey guys

Are there these functions in Harbour :?:
Code (fw): Select all Collapse
AP_HeadersIn()
AP_Body()
AP_GetPairs()
AP_PostPairs()
AP_GetEnv()
Thanks,
Ari

FWH 2501 - Harbour 3.2.0 - Embarcadero 7.43 - MySQL
São Paulo - SP - Brasil
www.sisrev.com.br
Posts: 253
Joined: Fri Feb 03, 2006 04:21 PM
Re: Function from mod_harbour to Harbour
Posted: Fri Apr 28, 2023 05:39 PM
Code (fw): Select all Collapse
      /* mod_harbour            Harbour        */
      AP_GetEnv()               hb_GetEnv() - ok
Thanks,
Ari

FWH 2501 - Harbour 3.2.0 - Embarcadero 7.43 - MySQL
São Paulo - SP - Brasil
www.sisrev.com.br
Posts: 253
Joined: Fri Feb 03, 2006 04:21 PM
Re: Function from mod_harbour to Harbour
Posted: Fri Apr 28, 2023 05:57 PM
:D

Here is the source code
Code (fw): Select all Collapse
https://github.com/FiveTechSoft/mod_harbour/blob/master/source/in.c
Congratulations Antonio!
Thanks,
Ari

FWH 2501 - Harbour 3.2.0 - Embarcadero 7.43 - MySQL
São Paulo - SP - Brasil
www.sisrev.com.br
Posts: 253
Joined: Fri Feb 03, 2006 04:21 PM
Re: Function from mod_harbour to Harbour
Posted: Fri Apr 28, 2023 06:24 PM
I wasn't able to "

It lacks knowledge to assemble, it uses Apache's Lib and a compilation error appears..

:cry:
Thanks,
Ari

FWH 2501 - Harbour 3.2.0 - Embarcadero 7.43 - MySQL
São Paulo - SP - Brasil
www.sisrev.com.br
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Function from mod_harbour to Harbour
Posted: Fri Apr 28, 2023 06:38 PM
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 253
Joined: Fri Feb 03, 2006 04:21 PM
Re: Function from mod_harbour to Harbour
Posted: Fri Apr 28, 2023 06:38 PM
:roll:

Explaining my intentions: I set up a REST API with harbor for my Desktop Application, because there are many business rules that are impossible to redo in another language, so I take system functions and return them to the Browser, so far it's working.

Now I would like to control authentication via Token or another way to validate access. and HB_EetEnv() cannot get the Body or the Header.

I already use the above functions in mod_harbour for another purpose, which is conversion from Sisrev-Win to Sisrev-Web. There it works perfectly.

Now in this project, it's for a website that has a shopping cart and I need authentication and order data in the body.

Grateful
Thanks,
Ari

FWH 2501 - Harbour 3.2.0 - Embarcadero 7.43 - MySQL
São Paulo - SP - Brasil
www.sisrev.com.br
Posts: 253
Joined: Fri Feb 03, 2006 04:21 PM
Re: Function from mod_harbour to Harbour
Posted: Fri Apr 28, 2023 08:14 PM
Antonio,

I haven't tested them all, the AP_HeadersIn() didn't work

I pasted it from the in.prg and compiled the AP_Body() test ok it worked.
Code (fw): Select all Collapse
  function AP_HeadersIn()          ;  return hHeadersIn
Thanks,
Ari

FWH 2501 - Harbour 3.2.0 - Embarcadero 7.43 - MySQL
São Paulo - SP - Brasil
www.sisrev.com.br

Continue the discussion