The http header response handling is not working for this API:
I presume that there may be multiple http-headers (due to page forwarding?) and that we are only interested in the last one ... we thus need to find the last LINE starting with "http/":
I have changed the code to set $responseHeaders =
[
s = $responseHeaders;
tag = "http/" ;
p = Position( "¶" & s; "¶" & tag ; Length( s ) ; -1 )
] ;
Right ( s ; Length( s ) + 1 - p )
)
…which works (and using -1 in the pos function is also more efficient)
The http header response handling is not working for this API:
I presume that there may be multiple http-headers (due to page forwarding?) and that we are only interested in the last one ... we thus need to find the last LINE starting with "http/":
I have changed the code to set $responseHeaders =
…which works (and using -1 in the pos function is also more efficient)