Apigee is encoding queryparameter while sending to soap backend

I need to append queryparameter to backend url. I am using javascript policy to add queryparameters.

backend url should look like this: https://abc.com?q=http://weather.com/forecast/tomorrow

Apigee is encoding the queryparam while sending to backend:

https://abc.com?q=http%3A%2F%2Fweather.com%2Fforecast%2Ftomorrow

I don't need this encoding as backend expects the query as it is.

Please help @Dino/ @Dino-at-Google

Thanks

Sonal

0 2 461
2 REPLIES 2

This has been answered here[1], here, and here.

In short, quoting (with paraphrase) from the above answer [1]:

The backend system needs to call decodeURIComponent() or the equivalent, on the inbound query string. 
Apigee Edge complies with the IETF specs and it will encode the value in query parameter.

Once again, really good information from Brendan!

Sonal, regarding this statement:

I don't need this encoding as backend expects the query as it is.

Yes, you DO need this encoding. HTTP requires it. It's not optional. The backend needs to do the right thing.