pls let me know if there is any docs for httpapi ?
for eg, doc which describes parameters to pass to http_xproc?
I am struggling to understand below code. the http_strig is taking only the form_data as input..so how exactly is the form header used? Apologies my web knowledge is very limited.
I don't understand why it is called "form_header" -- it appears to be an HTTP header (rather than a form header), specifically, it is someone's manual implementation of HTTP Basic Authentication. I don't understand why someone would code that, though... HTTPAPI has built-in support for basic authentication... why write it yourself?
Presumably, "form_header" is a global variable that is being utilitized by the SetHeader() subprocedure. It's hard to tell, however, since you haven't posted the code for the SetHeader() subprocedure, or the definition of "form_header", I don't know that for certain.
Perhaps you can ask whomever wrote it why they wrote it that way?