Hello friends,
I find AP_SetContentType("application/json") in apache.prg as EXTERN but I can't find
AP_SetStatusCode(200) and AP_AddHeader("Another-Header", "HeaderValue").
Are these in another part of sourcecode?
Best regards,
Otto
AP_SetStatusCode
- Otto
- Posts: 6403
- Joined: Fri Oct 07, 2005 7:07 pm
- Has thanked: 21 times
- Been thanked: 2 times
- Contact:
AP_SetStatusCode
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
- Antonio Linares
- Site Admin
- Posts: 42508
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 30 times
- Been thanked: 72 times
- Contact:
Re: AP_SetStatusCode
Dear Otto,
200 is returned by defaut by Apache. If you want to return a different value then you have to use ErrorLevel( nValue ) in example: ErrorLevel( 408 )
200 is returned by defaut by Apache. If you want to return a different value then you have to use ErrorLevel( nValue ) in example: ErrorLevel( 408 )
- Antonio Linares
- Site Admin
- Posts: 42508
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 30 times
- Been thanked: 72 times
- Contact:
Re: AP_SetStatusCode
Dear Otto,
> AP_AddHeader("Another-Header", "HeaderValue")
Do you mean in headers or out headers ? I guess out headers, if so:
AP_HeadersOutSet( cKey, cValue )
> AP_AddHeader("Another-Header", "HeaderValue")
Do you mean in headers or out headers ? I guess out headers, if so:
AP_HeadersOutSet( cKey, cValue )