cancel
Showing results for 
Search instead for 
Did you mean: 

iFlow HTTP Adapter with "%2B" in address

fkrs
Newcomer
0 Kudos
164

Hello,

I'm trying to call a request with the HTTP adapter, now the problem is that I have special characters in the address field. Therefore I changed the space and the plus in the address URL to something like this: "https://example.com/example(Product='Test%2B%20505')".

The error I get in the iFlow is the following:

org.apache.camel.component.ahc.AhcOperationFailedException: HTTP operation failed invoking https://example.com/example(Product='Test+%20505') with statusCode: 400

As seen in the error message, the "%2B" is being reverted back to "+" and I guess the error happens because of that. The request with this URL won't work in Postman as well, the "+" has to stay as "%2B".

How can I keep the "%2B" in the HTTP address without it being auto converted? Or am I missing something out?

Accepted Solutions (0)

Answers (1)

Answers (1)

VijayKonam
Active Contributor
0 Kudos

What is your actual URL that is working from postman? I suggest you use urlencoder in a groovy rather than manually substituting these values.