Skip to main content

Is there a way to set headers for the HTTP call? Ironically I am trying to call the FME Server API, so I need to set, for example,

 

Authorization: token fmetoken=YourTokenHere

 

Hi @ld,

 

Thanks for your question. I don't believe 'custom' headers are supported at this time. But I will check in with our development team and also find out if we have plans to add this in the future.

 

 

In the meantime are you able to use those HTTP Authentication parameters for authorization instead? There are also a couple of other options documented: https://docs.safe.com/fme/html/FME_REST/apidoc/v3/index.html. Notably you could attach the token as a query string parameter (eg. http://myhost.com/fmerest/v3/repositories?fmetoken=XXXXXXXXXXXXXXX).

Hope this helps,

Nathan

 

 


Hi @ld,

 

Thanks for your question. I don't believe 'custom' headers are supported at this time. But I will check in with our development team and also find out if we have plans to add this in the future.

 

 

In the meantime are you able to use those HTTP Authentication parameters for authorization instead? There are also a couple of other options documented: https://docs.safe.com/fme/html/FME_REST/apidoc/v3/index.html. Notably you could attach the token as a query string parameter (eg. http://myhost.com/fmerest/v3/repositories?fmetoken=XXXXXXXXXXXXXXX).

Hope this helps,

Nathan

 

 

Thanks @nathanatsafe, I do also need to set the Content-Type so would need these headers. I'll make the call in a scheduled workspace instead.


Reply