[Apiman-user] How to change the URL location with URL Rewriting Policy

Celso Agra celso.agra at gmail.com
Thu Feb 2 19:04:43 EST 2017


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 at 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 at 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 at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/apiman-user
>>
>>
>


-- 
---
*Celso Agra*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/apiman-user/attachments/20170202/e6300863/attachment.html 


More information about the Apiman-user mailing list