Recent

Author Topic: BrookFramework 3.0 - how to get Request headers?  (Read 486 times)

martinrame

  • Full Member
  • ***
  • Posts: 121
BrookFramework 3.0 - how to get Request headers?
« on: April 10, 2025, 07:55:50 pm »
Hi, in an old CGI (built with Brook 3.0) app I'm improving I need to capture the headers sent to a Post message. Where are those stored?


martinrame

  • Full Member
  • ***
  • Posts: 121
Re: BrookFramework 3.0 - how to get Request headers?
« Reply #1 on: April 10, 2025, 08:12:56 pm »
What I'm trying to read is the "Authorization: Bearer" header sent by a client.

Renat.Su

  • Sr. Member
  • ****
  • Posts: 253
    • Renat.Su
Re: BrookFramework 3.0 - how to get Request headers?
« Reply #2 on: May 02, 2025, 09:23:24 pm »
TBrookAction.HTTPRequest/TBrookAction.Request didn't help? Why don't you use BrookFreePascal 4.0?

Renat.Su

  • Sr. Member
  • ****
  • Posts: 253
    • Renat.Su
Re: BrookFramework 3.0 - how to get Request headers?
« Reply #3 on: May 02, 2025, 09:26:35 pm »
TBrookAction.HTTPRequest.CustomHeaders / GetHeader...
But I did not remember exactly how it was in Brook 3.0

 

TinyPortal © 2005-2018