[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Ftpapi] Send api key in header



In case it can be useful to someone

 

After trying to use all the HTTP_setAuth options (and the http_xproc HTTP_POINT_ADDL_HEADER option) and the server returns the 500 error I found the way.

 

It may not be the best ... but it works.

 

http_setAuth (HTTP_AUTH_USRDFN

            : CRLF + 'ApiKey:'

: '[apiKeyValue');

 

I add a CRLF before the value and ':' in ApiKey. With this, the server understands the header sent.

 

-- 
_______________________________________________
Ftpapi mailing list
Ftpapi@xxxxxxxxxxxxxxxxxxxxxx
http://scottklement.com/mailman/listinfo/ftpapi