Skip to main content
Question

Call @Http Function with Function Caller?


Forum|alt.badge.img

Hi,

I wonder how can I call @Http function with the FunctionCaller transformer?

The reason is that HTTPCaller does not support specifying proxy server directly, but the @Http function seems like it supports custom proxy setting.

Thanks,

3 replies

mark2atsafe
Safer
Forum|alt.badge.img+44
  • Safer
  • November 7, 2017

Have you tried setting the proxy in Tools > FME Options? I'm about 75% certain the HTTPCaller would pick up that info and use it.


Forum|alt.badge.img
  • Author
  • November 7, 2017
mark2atsafe wrote:

Have you tried setting the proxy in Tools > FME Options? I'm about 75% certain the HTTPCaller would pick up that info and use it.

@Mark2AtSate Yes, it will work. However, suppose we have DMZ environment, where only certain workspace/transformer is allowed to access proxy. There is such setting in FTPCaller as FTP Proxy, why not add per-HTTPCaller proxy setting? I am about 100% certain that underlying curl library supports it.

 


david_r
Celebrity
  • November 7, 2017

Hi Mark, I can confirm that the proxy settings in FME Options is used, but unfortunately there still exists some proxy settings that aren't supported by the HTTPCaller, notably domain exceptions with wildcards.

I have to rewrite HTTPCaller functionality in Python to work around those specific cases. Fortunately they're relatively unusual.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings