on 2023 Jan 25 2:02 PM
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?
Request clarification before answering.
What is your actual URL that is working from postman? I suggest you use urlencoder in a groovy rather than manually substituting these values.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
45 | |
6 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.