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
- Antonio Linares
- Site Admin
- Posts: 44515
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- 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: 44515
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- 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 )