...
Name | Default Value | Description |
---|---|---|
throwExceptionOnFailure | true | Camel 2.0: Option to disable throwing the HttpOperationFailedException in case of failed responses from the remote server. This allows you to get all responses regardles of the HTTP status code. |
httpBindingRef | null | Reference to a |
username | null | Username for basic http authentication. |
password | null | Password for basic http authentication. |
proxyHost | null | The proxy host name * only for >= Camel 1.6.2 * |
proxyPort | null | The proxy port number * only for >= Camel 1.6.2 * |
proxyUsername | null | Username for proxy authentication * only for >= Camel 1.6.2 * |
proxyPassword | null | Password for proxy authentication * only for >= Camel 1.6.2 * |
httpClientConfigurerRef | null | Reference to a |
httpClient.XXX | null | Setting options on the HttpClientParams. For instance |
...
Code Block | ||||
---|---|---|---|---|
| ||||
<camelContext xmlns="http://activemq.apache.org/camel/schema/spring"> <route> <from uri="direct:start"/> <setHeader headerName="CamelHttpMethod"> <constant>POST</constant> </setHeader> <to uri="http://www.google.com"/> <to uri="mock:results"/> </route> </camelContext> |
Using client tineout - SO_TIMEOUT
See the unit test in this link
Configuring a Proxy
Only for >= Camel 1.6.2
The HTTP component provides a way to configure a proxy.
...