I have previously posted this to the dev-list, but it probably should rather
go here.
In camel 2.6.0, I am using the http component to query an XML base Web API.
The query string contains a comma separated list. When the query string is
sent to the server, the commas have been encoded twice, i have tracked down
where this is actually happening, see below. What is going wrong here? The
route definition is as such:
from("timer:cron?period=1m")
.to("http://prtg/api/table.xml?output=xml&content=groups&columns=name,totalsens,upsens,unusualsens,warnsens,partialdownsens,downsens,pausedsens,undefinedsens&username=apiuser&passhash=901852000")
.to("log:ch.incore.cerberus?level=INFO");
594 [main] DEBUG org.apache.camel.util.ServiceHelper - Starting service:
org.apache.camel.component.http.HttpComponent@9be79a
594 [main] DEBUG org.apache.camel.impl.DefaultComponent - Creating
endpoint
uri=[http://prtg/api/table.xml?columns=name%2Ctotalsens%2Cupsens%2Cunusualsens%2Cwarnsens%2Cpartialdownsens%2Cdownsens%2Cpausedsens%2Cundefinedsens&content=groups&output=xml&passhash=901852000&username=apiuser],
path=[prtg/api/table.xml],
parameters=[{columns=name,totalsens,upsens,unusualsens,warnsens,partialdownsens,downsens,pausedsens,undefinedsens,
content=groups, output=xml, passhash=901852000, username=apiuser}]
594 [main] DEBUG org.apache.camel.impl.DefaultCamelContext -
http://prtg/api/table.xml?columns=name%2Ctotalsens%2Cupsens%2Cunusualsens%2Cwarnsens%2Cpartialdownsens%2Cdownsens%2Cpausedsens%2Cundefinedsens&content=groups&output=xml&passhash=901852000&username=apiuser
converted to endpoint:
Endpoint[http://prtg/api/table.xml?content=groups&username=apiuser&columns=name%252Ctotalsens%252Cupsens%252Cunusualsens%252Cwarnsens%252Cpartialdownsens%252Cdownsens%252Cpausedsens%252Cundefinedsens&output=xml&passhash=901852000]
by component: org.apache.camel.component.http.HttpComponent@9be79a
--
View this message in context:
http://camel.465427.n5.nabble.com/URL-encoding-in-http-component-tp3395413p3395413.html
Sent from the Camel Development mailing list archive at Nabble.com.
Bitte oeffnen Sie nicht jedes Mail-/Attachement. Achten Sie auf den Absender
und beachten Sie die Sprache in der das Mail erstellt wurde. Sollten Sie
z.B. ein Mail erhalten von einem Absender der normalerweise Mails in Deutsch
verfasst, dann seien Sie doppelt vorsichtig wenn es Englisch ist.
--
View this message in context:
http://camel.465427.n5.nabble.com/URL-double-encoding-in-http-component-tp3395581p3395581.html
Sent from the Camel - Users mailing list archive at Nabble.com.