[ https://issues.apache.org/jira/browse/CAMEL-4176?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13061888#comment-13061888 ]
Don Doffe commented on CAMEL-4176: ---------------------------------- Run the tests. When proxy settings are defined in the endpoint URL, it works. If the proxyAuthScheme is defined it is used, otherwise falls back to http4. But when the proxy setting are defined globally using getContext().getProperties().put() - it does not. When "http.proxyScheme" is defined it is used. But when it is not the same issue presents itself - camel falls back to http. > camel-http4 component does not support proxy settings for HTTPS > --------------------------------------------------------------- > > Key: CAMEL-4176 > URL: https://issues.apache.org/jira/browse/CAMEL-4176 > Project: Camel > Issue Type: Bug > Components: camel-http > Affects Versions: 2.8.0 > Environment: Win 7 x64 > JDK 1.6.0 25 > Reporter: Don Doffe > Assignee: Claus Ibsen > Fix For: 2.8.0 > > Attachments: http_exception.log > > > Camel-http4 does not support http proxy configuration for HTTPS (https4:// > endpoints). > Scenario 1: > Camel -- HTTP --> Proxy -- HTTPS4 --> Destination > http.proxyHost & http.proxyPort are specified and recognized: > String _authUsername="WS_P2P_INTERNAL"; > String _authPassword="WS_P2P_INTERNAL"; > > from("servlet:///proxy?matchOnUriPrefix=true") > .removeHeader(Exchange.HTTP_URI) > .removeHeader(Exchange.HTTP_PATH) > .removeHeader(Exchange.HTTP_QUERY) > > > .to("https4://aupdc-osb01d:9002/P2P_Creditors/P2P_CreditorWS?wsdl&authUsername="+_authUsername+"&authPassword="+_authPassword+"&x509HostnameVerifier=AllowAllVerifier&proxyAuthHost=aupdc00-revprx01t&proxyAuthPort=9001"); > Getting exception: > java.lang.IllegalStateException: Scheme 'http' not registered. > at > org.apache.http.conn.scheme.SchemeRegistry.getScheme(SchemeRegistry.java:71) > at > org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:127) > Attaching the whole log - http_exception.log > Scenario 2: > Camel -- HTTPS --> Proxy -- HTTPS4 --> Destination > Camel does not seem top recognize and accept https.proxyHost and > https.proxyPort settings: > getContext().getProperties().put("https.proxyHost", "aupdc00-revprx01d"); > getContext().getProperties().put("https.proxyPort", "9001"); -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira