Solved

How can I set header values when using HTTP Request in FME Automations?

  • 17 December 2019
  • 2 replies
  • 16 views

Badge

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

 

icon

Best answer by nathanatsafe 20 December 2019, 00:08

View original

2 replies

Badge +7

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

 

 

Badge

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