There is a property defined in "apiman.properties" that you can change:

apiman-gateway.connector-factory.http.followRedirects

Change that property to "false" and try again. :)

-Eric

On Thu, Feb 2, 2017 at 7:04 PM, Celso Agra <celso.agra@gmail.com> wrote:
Yeah! The Apiman is following the redirect.
If I do not use the apiman to invoke the http method, so, my system can redirect to another url (such as the location in browser); But If I use the apiman to invoke this method, so the location is not being changed
 

2017-02-02 19:19 GMT-03:00 Eric Wittmann <eric.wittmann@redhat.com>:
What is the behavior you are seeing?  It's possible that the apiman gateway itself is following the redirect.  Is that what's happening?

On Thu, Feb 2, 2017 at 4:23 PM, Celso Agra <celso.agra@gmail.com> wrote:
All,

I'm trying to change the location path in browser with my nodeJS application.
For some reason, the apiman does not allow me to change that.

So, I'm think to use the URL Rewriting Policy Configuration, but I'd like to understand how it works.

Here's my nodeJS code:
req.url = config.redirect_site;
res.statusCode = 302; 
res.location(config.redirect_site);
res.end();

Without APIman it works fine! Does anyone know how can I set a different url with this policy or any other method in Apiman?

Thanks!

Best regards,

--
---
Celso Agra

_______________________________________________
Apiman-user mailing list
Apiman-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/apiman-user





--
---
Celso Agra