dynamic target URL with proxy: issue with http

I have a proxy which modify dynamically the target URL thanks to a JS policy in the target pre-flow.

To reach this target, I have to pass through an http outbound proxy. So the property "use.proxy" is set to true.

  • If the targeted URL is HTTPS, it works.
  • if the targeted URL is HTTP, it doesn't work (gateway timeout).

I do some tests to understand where is the problem:

  • I tried to replace the target endpoitn by 2 service callout policies (one with http and one with https as the scheme cannot be in the variable) and I have the same result.
  • I tried without the use.proxy and it works with an http url (but the outbound proxy is mandatory in my case)
  • I tried with the right URL put directly as the target and it works - something like this:
<HTTPTargetConnection>
    <URL>http://example.com</URL>
    <Properties>
        <Property name="use.proxy">true</Property>
    </Properties>
</HTTPTargetConnection>

So it seems there is this problem only for the combination: dynamic target URL + http scheme + outbound proxy.

Could you help me to find a solution?

Thanks

0 2 596
2 REPLIES 2

Does the outbound proxy support a http target?

Yes, it does: if I put the http url directly in the URL element with use.proxy=true, the request is well done. But if the same URL is set through a JS policy in the pre-flow of the target, it fails. This problem occurs only with http url.