You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Josh Deanor (JIRA)" <ji...@apache.org> on 2011/09/26 15:24:25 UTC

[jira] [Created] (CAMEL-4489) camel-http4 sends out a 'http4' GET request

camel-http4 sends out a 'http4' GET request
-------------------------------------------

                 Key: CAMEL-4489
                 URL: https://issues.apache.org/jira/browse/CAMEL-4489
             Project: Camel
          Issue Type: Bug
          Components: camel-http
         Environment: Windows XP, JDK 1.6
            Reporter: Josh Deanor


When I try to do : from("http4://www.google.com/").to("mock:results") using apache camel-http4 scheme, a GET request is being sent out with 'http4' as the protocol - my proxy server fails to understand this as a protocol. 

This is what the log looks like: 

  DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (RequestAddCookies.java132) - CookieSpec selected: best-match
  DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (RequestAuthCache.java75) - Auth cache not set in the context
  DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultRequestDirector.java643) - Attempt 1 to execute request
  DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java264) - Sending request: GET http4://www.google.com/ HTTP/1.1
  DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "GET http4://www.google.com/ HTTP/1.1[\r][\n]"
  DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "Host: www.google.com[\r][\n]"
  DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "Proxy-Connection: Keep-Alive[\r][\n]"
  DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "[\r][\n]"
  DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java268) - >> GET http4://www.google.com/ HTTP/1.1
  DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java271) - >> Host: www.google.com
  DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java271) - >> Proxy-Connection: Keep-Alive
  DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - << "HTTP/1.1 502 Proxy Error 





--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (CAMEL-4489) camel-http4 sends out a 'http4' GET request

Posted by "Willem Jiang (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-4489?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Willem Jiang resolved CAMEL-4489.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 2.9.0
                   2.8.2
                   2.7.4
         Assignee: Willem Jiang

committed the patch into trunk, camel-2.8.x, camel-2.7.x.
                
> camel-http4 sends out a 'http4' GET request
> -------------------------------------------
>
>                 Key: CAMEL-4489
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4489
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-http
>         Environment: Windows XP, JDK 1.6
>            Reporter: Josh Deanor
>            Assignee: Willem Jiang
>            Priority: Critical
>              Labels: http, http4
>             Fix For: 2.7.4, 2.8.2, 2.9.0
>
>
> When I try to do : from("http4://www.google.com/").to("mock:results") using apache camel-http4 scheme, a GET request is being sent out with 'http4' as the protocol - my proxy server fails to understand this as a protocol. 
> This is what the log looks like: 
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (RequestAddCookies.java132) - CookieSpec selected: best-match
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (RequestAuthCache.java75) - Auth cache not set in the context
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultRequestDirector.java643) - Attempt 1 to execute request
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java264) - Sending request: GET http4://www.google.com/ HTTP/1.1
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "GET http4://www.google.com/ HTTP/1.1[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "Host: www.google.com[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "Proxy-Connection: Keep-Alive[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java268) - >> GET http4://www.google.com/ HTTP/1.1
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java271) - >> Host: www.google.com
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java271) - >> Proxy-Connection: Keep-Alive
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - << "HTTP/1.1 502 Proxy Error 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CAMEL-4489) camel-http4 sends out a 'http4' GET request

Posted by "Willem Jiang (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-4489?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13116293#comment-13116293 ] 

Willem Jiang commented on CAMEL-4489:
-------------------------------------

Hi Josh,

I don't think current HttpConsumer support this 'http streaming' out of box.
You may take a look at the camel-cometd component to see if it can do the job for you.

Willem
                
> camel-http4 sends out a 'http4' GET request
> -------------------------------------------
>
>                 Key: CAMEL-4489
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4489
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-http
>         Environment: Windows XP, JDK 1.6
>            Reporter: Josh Deanor
>            Assignee: Willem Jiang
>            Priority: Critical
>              Labels: http, http4
>             Fix For: 2.7.4, 2.8.2, 2.9.0
>
>
> When I try to do : from("http4://www.google.com/").to("mock:results") using apache camel-http4 scheme, a GET request is being sent out with 'http4' as the protocol - my proxy server fails to understand this as a protocol. 
> This is what the log looks like: 
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (RequestAddCookies.java132) - CookieSpec selected: best-match
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (RequestAuthCache.java75) - Auth cache not set in the context
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultRequestDirector.java643) - Attempt 1 to execute request
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java264) - Sending request: GET http4://www.google.com/ HTTP/1.1
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "GET http4://www.google.com/ HTTP/1.1[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "Host: www.google.com[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "Proxy-Connection: Keep-Alive[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java268) - >> GET http4://www.google.com/ HTTP/1.1
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java271) - >> Host: www.google.com
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java271) - >> Proxy-Connection: Keep-Alive
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - << "HTTP/1.1 502 Proxy Error 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CAMEL-4489) camel-http4 sends out a 'http4' GET request

Posted by "Josh Deanor (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-4489?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13115598#comment-13115598 ] 

Josh Deanor commented on CAMEL-4489:
------------------------------------

what you really need to fix, I believe, is the EndPoint URI.
                
> camel-http4 sends out a 'http4' GET request
> -------------------------------------------
>
>                 Key: CAMEL-4489
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4489
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-http
>         Environment: Windows XP, JDK 1.6
>            Reporter: Josh Deanor
>            Assignee: Willem Jiang
>            Priority: Critical
>              Labels: http, http4
>             Fix For: 2.7.4, 2.8.2, 2.9.0
>
>
> When I try to do : from("http4://www.google.com/").to("mock:results") using apache camel-http4 scheme, a GET request is being sent out with 'http4' as the protocol - my proxy server fails to understand this as a protocol. 
> This is what the log looks like: 
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (RequestAddCookies.java132) - CookieSpec selected: best-match
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (RequestAuthCache.java75) - Auth cache not set in the context
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultRequestDirector.java643) - Attempt 1 to execute request
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java264) - Sending request: GET http4://www.google.com/ HTTP/1.1
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "GET http4://www.google.com/ HTTP/1.1[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "Host: www.google.com[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "Proxy-Connection: Keep-Alive[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java268) - >> GET http4://www.google.com/ HTTP/1.1
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java271) - >> Host: www.google.com
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java271) - >> Proxy-Connection: Keep-Alive
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - << "HTTP/1.1 502 Proxy Error 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CAMEL-4489) camel-http4 sends out a 'http4' GET request

Posted by "Claus Ibsen (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-4489?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13115392#comment-13115392 ] 

Claus Ibsen commented on CAMEL-4489:
------------------------------------

I think Willem have fixed this on trunk. There is a commit
http://svn.apache.org/viewvc?rev=1176274&view=rev
                
> camel-http4 sends out a 'http4' GET request
> -------------------------------------------
>
>                 Key: CAMEL-4489
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4489
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-http
>         Environment: Windows XP, JDK 1.6
>            Reporter: Josh Deanor
>            Priority: Critical
>              Labels: http, http4
>
> When I try to do : from("http4://www.google.com/").to("mock:results") using apache camel-http4 scheme, a GET request is being sent out with 'http4' as the protocol - my proxy server fails to understand this as a protocol. 
> This is what the log looks like: 
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (RequestAddCookies.java132) - CookieSpec selected: best-match
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (RequestAuthCache.java75) - Auth cache not set in the context
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultRequestDirector.java643) - Attempt 1 to execute request
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java264) - Sending request: GET http4://www.google.com/ HTTP/1.1
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "GET http4://www.google.com/ HTTP/1.1[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "Host: www.google.com[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "Proxy-Connection: Keep-Alive[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java268) - >> GET http4://www.google.com/ HTTP/1.1
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java271) - >> Host: www.google.com
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java271) - >> Proxy-Connection: Keep-Alive
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - << "HTTP/1.1 502 Proxy Error 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (CAMEL-4489) camel-http4 sends out a 'http4' GET request

Posted by "Willem Jiang (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-4489?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Willem Jiang resolved CAMEL-4489.
---------------------------------

    Resolution: Fixed
    
> camel-http4 sends out a 'http4' GET request
> -------------------------------------------
>
>                 Key: CAMEL-4489
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4489
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-http
>         Environment: Windows XP, JDK 1.6
>            Reporter: Josh Deanor
>            Assignee: Willem Jiang
>            Priority: Critical
>              Labels: http, http4
>             Fix For: 2.7.4, 2.8.2, 2.9.0
>
>
> When I try to do : from("http4://www.google.com/").to("mock:results") using apache camel-http4 scheme, a GET request is being sent out with 'http4' as the protocol - my proxy server fails to understand this as a protocol. 
> This is what the log looks like: 
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (RequestAddCookies.java132) - CookieSpec selected: best-match
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (RequestAuthCache.java75) - Auth cache not set in the context
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultRequestDirector.java643) - Attempt 1 to execute request
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java264) - Sending request: GET http4://www.google.com/ HTTP/1.1
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "GET http4://www.google.com/ HTTP/1.1[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "Host: www.google.com[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "Proxy-Connection: Keep-Alive[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java268) - >> GET http4://www.google.com/ HTTP/1.1
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java271) - >> Host: www.google.com
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java271) - >> Proxy-Connection: Keep-Alive
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - << "HTTP/1.1 502 Proxy Error 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Issue Comment Edited] (CAMEL-4489) camel-http4 sends out a 'http4' GET request

Posted by "Josh Deanor (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-4489?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13115596#comment-13115596 ] 

Josh Deanor edited comment on CAMEL-4489 at 9/27/11 4:04 PM:
-------------------------------------------------------------

I tried with the patch, it does not work. I did something to make it work, but I'll leave it to you to figure out what the issue is.

I see the changes you've made, but that doesn't change what is returned here:

In HttpPollingConsumer.java:

{quote}

 protected. HttpRequestBase createMethod() {
        String uri = endpoint.getEndpointUri();
        return new HttpGet(uri);
    }

{quote}

I had a debug point here on String uri=endpoint.getEndpointUri(); and I noticed that it pointed to 'http4://www.google.com' and to make it work, I changed the uri to "http://www.google.com" (during debug) and it returned the correct response (HTTP 200). 


                
      was (Author: fedexp):
    I tried with the patch, it does not work. I did something to make it work, but I'll leave it to you to figure out what the issue is.

I see the changes you've made, but that doesn't change what is returned here:

In HttpPollingConsumer.java:

{quote}

 protected HttpRequestBase createMethod() {
        String uri = endpoint.getEndpointUri();
        return new HttpGet(uri);
    }

{quote}

I had a debug point here on String uri=endpoint.getEndpointUri(); and I noticed that it pointed to 'http4://www.google.com' and to make it work, I changed the uri to "http://www.google.com" (during debug) and it returned the correct response (HTTP 200). 


                  
> camel-http4 sends out a 'http4' GET request
> -------------------------------------------
>
>                 Key: CAMEL-4489
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4489
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-http
>         Environment: Windows XP, JDK 1.6
>            Reporter: Josh Deanor
>            Assignee: Willem Jiang
>            Priority: Critical
>              Labels: http, http4
>             Fix For: 2.7.4, 2.8.2, 2.9.0
>
>
> When I try to do : from("http4://www.google.com/").to("mock:results") using apache camel-http4 scheme, a GET request is being sent out with 'http4' as the protocol - my proxy server fails to understand this as a protocol. 
> This is what the log looks like: 
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (RequestAddCookies.java132) - CookieSpec selected: best-match
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (RequestAuthCache.java75) - Auth cache not set in the context
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultRequestDirector.java643) - Attempt 1 to execute request
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java264) - Sending request: GET http4://www.google.com/ HTTP/1.1
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "GET http4://www.google.com/ HTTP/1.1[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "Host: www.google.com[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "Proxy-Connection: Keep-Alive[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java268) - >> GET http4://www.google.com/ HTTP/1.1
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java271) - >> Host: www.google.com
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java271) - >> Proxy-Connection: Keep-Alive
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - << "HTTP/1.1 502 Proxy Error 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Issue Comment Edited] (CAMEL-4489) camel-http4 sends out a 'http4' GET request

Posted by "Josh Deanor (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-4489?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13115596#comment-13115596 ] 

Josh Deanor edited comment on CAMEL-4489 at 9/27/11 4:11 PM:
-------------------------------------------------------------

I tried with the patch, it does not work. I did something to make it work, but I'll leave it to you to figure out what the issue is.

I see the changes you've made, but that doesn't change what is returned here:

In HttpPollingConsumer.java:

{code:java|borderStyle=solid}

 protected HttpRequestBase createMethod() 
 {
        String uri = endpoint.getEndpointUri();
        return new HttpGet(uri);
    }

{code:java}

I had a debug point here on String uri=endpoint.getEndpointUri(); and I noticed that it pointed to 'http4://www.google.com' and to make it work, I changed the uri to "http://www.google.com" (during debug) and it returned the correct response (HTTP 200). 


                
      was (Author: fedexp):
    I tried with the patch, it does not work. I did something to make it work, but I'll leave it to you to figure out what the issue is.

I see the changes you've made, but that doesn't change what is returned here:

In HttpPollingConsumer.java:

{code:java|borderStyle=solid}

 protected HttpRequestBase createMethod() {
        String uri = endpoint.getEndpointUri();
        return new HttpGet(uri);
    }

{code:java}

I had a debug point here on String uri=endpoint.getEndpointUri(); and I noticed that it pointed to 'http4://www.google.com' and to make it work, I changed the uri to "http://www.google.com" (during debug) and it returned the correct response (HTTP 200). 


                  
> camel-http4 sends out a 'http4' GET request
> -------------------------------------------
>
>                 Key: CAMEL-4489
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4489
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-http
>         Environment: Windows XP, JDK 1.6
>            Reporter: Josh Deanor
>            Assignee: Willem Jiang
>            Priority: Critical
>              Labels: http, http4
>             Fix For: 2.7.4, 2.8.2, 2.9.0
>
>
> When I try to do : from("http4://www.google.com/").to("mock:results") using apache camel-http4 scheme, a GET request is being sent out with 'http4' as the protocol - my proxy server fails to understand this as a protocol. 
> This is what the log looks like: 
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (RequestAddCookies.java132) - CookieSpec selected: best-match
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (RequestAuthCache.java75) - Auth cache not set in the context
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultRequestDirector.java643) - Attempt 1 to execute request
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java264) - Sending request: GET http4://www.google.com/ HTTP/1.1
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "GET http4://www.google.com/ HTTP/1.1[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "Host: www.google.com[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "Proxy-Connection: Keep-Alive[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java268) - >> GET http4://www.google.com/ HTTP/1.1
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java271) - >> Host: www.google.com
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java271) - >> Proxy-Connection: Keep-Alive
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - << "HTTP/1.1 502 Proxy Error 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CAMEL-4489) camel-http4 sends out a 'http4' GET request

Posted by "Willem Jiang (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-4489?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13115397#comment-13115397 ] 

Willem Jiang commented on CAMEL-4489:
-------------------------------------

Hi Josh,

Can you try the patch that I just committed? you can merge it into the camel version that you are using without any trouble :).
I will merge the patch to the other branch of camel.

Willem

                
> camel-http4 sends out a 'http4' GET request
> -------------------------------------------
>
>                 Key: CAMEL-4489
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4489
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-http
>         Environment: Windows XP, JDK 1.6
>            Reporter: Josh Deanor
>            Priority: Critical
>              Labels: http, http4
>
> When I try to do : from("http4://www.google.com/").to("mock:results") using apache camel-http4 scheme, a GET request is being sent out with 'http4' as the protocol - my proxy server fails to understand this as a protocol. 
> This is what the log looks like: 
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (RequestAddCookies.java132) - CookieSpec selected: best-match
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (RequestAuthCache.java75) - Auth cache not set in the context
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultRequestDirector.java643) - Attempt 1 to execute request
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java264) - Sending request: GET http4://www.google.com/ HTTP/1.1
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "GET http4://www.google.com/ HTTP/1.1[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "Host: www.google.com[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "Proxy-Connection: Keep-Alive[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java268) - >> GET http4://www.google.com/ HTTP/1.1
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java271) - >> Host: www.google.com
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java271) - >> Proxy-Connection: Keep-Alive
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - << "HTTP/1.1 502 Proxy Error 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Reopened] (CAMEL-4489) camel-http4 sends out a 'http4' GET request

Posted by "Josh Deanor (Reopened) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-4489?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Josh Deanor reopened CAMEL-4489:
--------------------------------


The fix did not work, I added a comment to show you what made it work for me.
                
> camel-http4 sends out a 'http4' GET request
> -------------------------------------------
>
>                 Key: CAMEL-4489
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4489
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-http
>         Environment: Windows XP, JDK 1.6
>            Reporter: Josh Deanor
>            Assignee: Willem Jiang
>            Priority: Critical
>              Labels: http, http4
>             Fix For: 2.7.4, 2.8.2, 2.9.0
>
>
> When I try to do : from("http4://www.google.com/").to("mock:results") using apache camel-http4 scheme, a GET request is being sent out with 'http4' as the protocol - my proxy server fails to understand this as a protocol. 
> This is what the log looks like: 
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (RequestAddCookies.java132) - CookieSpec selected: best-match
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (RequestAuthCache.java75) - Auth cache not set in the context
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultRequestDirector.java643) - Attempt 1 to execute request
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java264) - Sending request: GET http4://www.google.com/ HTTP/1.1
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "GET http4://www.google.com/ HTTP/1.1[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "Host: www.google.com[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "Proxy-Connection: Keep-Alive[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java268) - >> GET http4://www.google.com/ HTTP/1.1
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java271) - >> Host: www.google.com
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java271) - >> Proxy-Connection: Keep-Alive
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - << "HTTP/1.1 502 Proxy Error 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CAMEL-4489) camel-http4 sends out a 'http4' GET request

Posted by "Josh Deanor (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-4489?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13116285#comment-13116285 ] 

Josh Deanor commented on CAMEL-4489:
------------------------------------

I've an out-of-context question here... I understand that by default the HttpConsumer polls the target website, but how do I make it work in a 'http streaming' scenario? For instance, say you are connected to a twitter stream, which keeps pushing chunked data on a http connection that you would keep open, how would I handle this scenario using camel? 
                
> camel-http4 sends out a 'http4' GET request
> -------------------------------------------
>
>                 Key: CAMEL-4489
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4489
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-http
>         Environment: Windows XP, JDK 1.6
>            Reporter: Josh Deanor
>            Assignee: Willem Jiang
>            Priority: Critical
>              Labels: http, http4
>             Fix For: 2.7.4, 2.8.2, 2.9.0
>
>
> When I try to do : from("http4://www.google.com/").to("mock:results") using apache camel-http4 scheme, a GET request is being sent out with 'http4' as the protocol - my proxy server fails to understand this as a protocol. 
> This is what the log looks like: 
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (RequestAddCookies.java132) - CookieSpec selected: best-match
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (RequestAuthCache.java75) - Auth cache not set in the context
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultRequestDirector.java643) - Attempt 1 to execute request
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java264) - Sending request: GET http4://www.google.com/ HTTP/1.1
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "GET http4://www.google.com/ HTTP/1.1[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "Host: www.google.com[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "Proxy-Connection: Keep-Alive[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java268) - >> GET http4://www.google.com/ HTTP/1.1
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java271) - >> Host: www.google.com
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java271) - >> Proxy-Connection: Keep-Alive
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - << "HTTP/1.1 502 Proxy Error 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CAMEL-4489) camel-http4 sends out a 'http4' GET request

Posted by "Josh Deanor (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-4489?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Josh Deanor updated CAMEL-4489:
-------------------------------

    Priority: Critical  (was: Major)
    
> camel-http4 sends out a 'http4' GET request
> -------------------------------------------
>
>                 Key: CAMEL-4489
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4489
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-http
>         Environment: Windows XP, JDK 1.6
>            Reporter: Josh Deanor
>            Priority: Critical
>              Labels: http, http4
>
> When I try to do : from("http4://www.google.com/").to("mock:results") using apache camel-http4 scheme, a GET request is being sent out with 'http4' as the protocol - my proxy server fails to understand this as a protocol. 
> This is what the log looks like: 
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (RequestAddCookies.java132) - CookieSpec selected: best-match
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (RequestAuthCache.java75) - Auth cache not set in the context
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultRequestDirector.java643) - Attempt 1 to execute request
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java264) - Sending request: GET http4://www.google.com/ HTTP/1.1
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "GET http4://www.google.com/ HTTP/1.1[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "Host: www.google.com[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "Proxy-Connection: Keep-Alive[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java268) - >> GET http4://www.google.com/ HTTP/1.1
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java271) - >> Host: www.google.com
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java271) - >> Proxy-Connection: Keep-Alive
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - << "HTTP/1.1 502 Proxy Error 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Issue Comment Edited] (CAMEL-4489) camel-http4 sends out a 'http4' GET request

Posted by "Josh Deanor (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-4489?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13115596#comment-13115596 ] 

Josh Deanor edited comment on CAMEL-4489 at 9/27/11 4:09 PM:
-------------------------------------------------------------

I tried with the patch, it does not work. I did something to make it work, but I'll leave it to you to figure out what the issue is.

I see the changes you've made, but that doesn't change what is returned here:

In HttpPollingConsumer.java:

{code:java}

 protected HttpRequestBase createMethod() {
        String uri = endpoint.getEndpointUri();
        return new HttpGet(uri);
    }

{code:java}

I had a debug point here on String uri=endpoint.getEndpointUri(); and I noticed that it pointed to 'http4://www.google.com' and to make it work, I changed the uri to "http://www.google.com" (during debug) and it returned the correct response (HTTP 200). 


                
      was (Author: fedexp):
    I tried with the patch, it does not work. I did something to make it work, but I'll leave it to you to figure out what the issue is.

I see the changes you've made, but that doesn't change what is returned here:

In HttpPollingConsumer.java:

{quote}

 protected HttpRequestBase createMethod() {
        String uri = endpoint.getEndpointUri();
        return new HttpGet(uri);
    }

{quote}

I had a debug point here on String uri=endpoint.getEndpointUri(); and I noticed that it pointed to 'http4://www.google.com' and to make it work, I changed the uri to "http://www.google.com" (during debug) and it returned the correct response (HTTP 200). 


                  
> camel-http4 sends out a 'http4' GET request
> -------------------------------------------
>
>                 Key: CAMEL-4489
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4489
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-http
>         Environment: Windows XP, JDK 1.6
>            Reporter: Josh Deanor
>            Assignee: Willem Jiang
>            Priority: Critical
>              Labels: http, http4
>             Fix For: 2.7.4, 2.8.2, 2.9.0
>
>
> When I try to do : from("http4://www.google.com/").to("mock:results") using apache camel-http4 scheme, a GET request is being sent out with 'http4' as the protocol - my proxy server fails to understand this as a protocol. 
> This is what the log looks like: 
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (RequestAddCookies.java132) - CookieSpec selected: best-match
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (RequestAuthCache.java75) - Auth cache not set in the context
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultRequestDirector.java643) - Attempt 1 to execute request
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java264) - Sending request: GET http4://www.google.com/ HTTP/1.1
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "GET http4://www.google.com/ HTTP/1.1[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "Host: www.google.com[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "Proxy-Connection: Keep-Alive[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java268) - >> GET http4://www.google.com/ HTTP/1.1
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java271) - >> Host: www.google.com
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java271) - >> Proxy-Connection: Keep-Alive
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - << "HTTP/1.1 502 Proxy Error 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Issue Comment Edited] (CAMEL-4489) camel-http4 sends out a 'http4' GET request

Posted by "Josh Deanor (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-4489?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13115382#comment-13115382 ] 

Josh Deanor edited comment on CAMEL-4489 at 9/27/11 10:23 AM:
--------------------------------------------------------------

Claus, Did you mean to ask - what am I trying to achieve? 
I am trying to read from a streaming http url... I know polling it won't help coz, I would need to have a connection open and kept-alive (I'll have to find a way around it). 

The issue here is that camel is not sending a "GET *http4*://www.google.com" instead of "GET *http*://www.google.com" - this happens only when I use it in my proxy environment. I am not sure what the issue is, coz httpclient 4 works perfectly fine when used standalone, using the same proxy.
                
      was (Author: fedexp):
    Claus, Did you mean to ask - what am I trying to achieve? 
I am trying to read from a streaming http url... I know polling it won't help coz, I would need to have a connection open and kept-alive (I'll have to find a way around it). 

The issue here is that camel is not sending a "GET http4://www.google.com" instead of "GET http://www.google.com" - this happens only when I use it in my proxy environment. I am not sure what the issue is, coz httpclient 4 works perfectly fine when used standalone, using the same proxy.
                  
> camel-http4 sends out a 'http4' GET request
> -------------------------------------------
>
>                 Key: CAMEL-4489
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4489
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-http
>         Environment: Windows XP, JDK 1.6
>            Reporter: Josh Deanor
>            Priority: Critical
>              Labels: http, http4
>
> When I try to do : from("http4://www.google.com/").to("mock:results") using apache camel-http4 scheme, a GET request is being sent out with 'http4' as the protocol - my proxy server fails to understand this as a protocol. 
> This is what the log looks like: 
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (RequestAddCookies.java132) - CookieSpec selected: best-match
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (RequestAuthCache.java75) - Auth cache not set in the context
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultRequestDirector.java643) - Attempt 1 to execute request
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java264) - Sending request: GET http4://www.google.com/ HTTP/1.1
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "GET http4://www.google.com/ HTTP/1.1[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "Host: www.google.com[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "Proxy-Connection: Keep-Alive[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java268) - >> GET http4://www.google.com/ HTTP/1.1
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java271) - >> Host: www.google.com
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java271) - >> Proxy-Connection: Keep-Alive
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - << "HTTP/1.1 502 Proxy Error 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Issue Comment Edited] (CAMEL-4489) camel-http4 sends out a 'http4' GET request

Posted by "Josh Deanor (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-4489?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13115596#comment-13115596 ] 

Josh Deanor edited comment on CAMEL-4489 at 9/27/11 4:12 PM:
-------------------------------------------------------------

I tried with the patch, it does not work. I did something to make it work, but I'll leave it to you to figure out what the issue is.

I see the changes you've made, but that doesn't change what is returned here:

In HttpPollingConsumer.java:

{code|borderStyle=solid}

 protected HttpRequestBase createMethod() 
 {
        String uri = endpoint.getEndpointUri();
        return new HttpGet(uri);
    }

{code}

I had a debug point here on String uri=endpoint.getEndpointUri(); and I noticed that it pointed to 'http4://www.google.com' and to make it work, I changed the uri to "http://www.google.com" (during debug) and it returned the correct response (HTTP 200). 


                
      was (Author: fedexp):
    I tried with the patch, it does not work. I did something to make it work, but I'll leave it to you to figure out what the issue is.

I see the changes you've made, but that doesn't change what is returned here:

In HttpPollingConsumer.java:

{code:java|borderStyle=solid}

 protected HttpRequestBase createMethod() 
 {
        String uri = endpoint.getEndpointUri();
        return new HttpGet(uri);
    }

{code:java}

I had a debug point here on String uri=endpoint.getEndpointUri(); and I noticed that it pointed to 'http4://www.google.com' and to make it work, I changed the uri to "http://www.google.com" (during debug) and it returned the correct response (HTTP 200). 


                  
> camel-http4 sends out a 'http4' GET request
> -------------------------------------------
>
>                 Key: CAMEL-4489
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4489
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-http
>         Environment: Windows XP, JDK 1.6
>            Reporter: Josh Deanor
>            Assignee: Willem Jiang
>            Priority: Critical
>              Labels: http, http4
>             Fix For: 2.7.4, 2.8.2, 2.9.0
>
>
> When I try to do : from("http4://www.google.com/").to("mock:results") using apache camel-http4 scheme, a GET request is being sent out with 'http4' as the protocol - my proxy server fails to understand this as a protocol. 
> This is what the log looks like: 
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (RequestAddCookies.java132) - CookieSpec selected: best-match
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (RequestAuthCache.java75) - Auth cache not set in the context
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultRequestDirector.java643) - Attempt 1 to execute request
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java264) - Sending request: GET http4://www.google.com/ HTTP/1.1
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "GET http4://www.google.com/ HTTP/1.1[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "Host: www.google.com[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "Proxy-Connection: Keep-Alive[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java268) - >> GET http4://www.google.com/ HTTP/1.1
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java271) - >> Host: www.google.com
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java271) - >> Proxy-Connection: Keep-Alive
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - << "HTTP/1.1 502 Proxy Error 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Issue Comment Edited] (CAMEL-4489) camel-http4 sends out a 'http4' GET request

Posted by "Josh Deanor (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-4489?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13115596#comment-13115596 ] 

Josh Deanor edited comment on CAMEL-4489 at 9/27/11 4:10 PM:
-------------------------------------------------------------

I tried with the patch, it does not work. I did something to make it work, but I'll leave it to you to figure out what the issue is.

I see the changes you've made, but that doesn't change what is returned here:

In HttpPollingConsumer.java:

{code:java|borderStyle=solid}

 protected HttpRequestBase createMethod() {
        String uri = endpoint.getEndpointUri();
        return new HttpGet(uri);
    }

{code:java}

I had a debug point here on String uri=endpoint.getEndpointUri(); and I noticed that it pointed to 'http4://www.google.com' and to make it work, I changed the uri to "http://www.google.com" (during debug) and it returned the correct response (HTTP 200). 


                
      was (Author: fedexp):
    I tried with the patch, it does not work. I did something to make it work, but I'll leave it to you to figure out what the issue is.

I see the changes you've made, but that doesn't change what is returned here:

In HttpPollingConsumer.java:

{code:java}

 protected HttpRequestBase createMethod() {
        String uri = endpoint.getEndpointUri();
        return new HttpGet(uri);
    }

{code:java}

I had a debug point here on String uri=endpoint.getEndpointUri(); and I noticed that it pointed to 'http4://www.google.com' and to make it work, I changed the uri to "http://www.google.com" (during debug) and it returned the correct response (HTTP 200). 


                  
> camel-http4 sends out a 'http4' GET request
> -------------------------------------------
>
>                 Key: CAMEL-4489
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4489
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-http
>         Environment: Windows XP, JDK 1.6
>            Reporter: Josh Deanor
>            Assignee: Willem Jiang
>            Priority: Critical
>              Labels: http, http4
>             Fix For: 2.7.4, 2.8.2, 2.9.0
>
>
> When I try to do : from("http4://www.google.com/").to("mock:results") using apache camel-http4 scheme, a GET request is being sent out with 'http4' as the protocol - my proxy server fails to understand this as a protocol. 
> This is what the log looks like: 
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (RequestAddCookies.java132) - CookieSpec selected: best-match
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (RequestAuthCache.java75) - Auth cache not set in the context
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultRequestDirector.java643) - Attempt 1 to execute request
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java264) - Sending request: GET http4://www.google.com/ HTTP/1.1
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "GET http4://www.google.com/ HTTP/1.1[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "Host: www.google.com[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "Proxy-Connection: Keep-Alive[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java268) - >> GET http4://www.google.com/ HTTP/1.1
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java271) - >> Host: www.google.com
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java271) - >> Proxy-Connection: Keep-Alive
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - << "HTTP/1.1 502 Proxy Error 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CAMEL-4489) camel-http4 sends out a 'http4' GET request

Posted by "Josh Deanor (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-4489?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13115382#comment-13115382 ] 

Josh Deanor commented on CAMEL-4489:
------------------------------------

Claus, Did you mean to ask - what am I trying to achieve? 
I am trying to read from a streaming http url... I know polling it won't help coz, I would need to have a connection open and kept-alive (I'll have to find a way around it). 

The issue here is that camel is not sending a "GET http4://www.google.com" instead of "GET http://www.google.com" - this happens only when I use it in my proxy environment. I am not sure what the issue is, coz httpclient 4 works perfectly fine when used standalone, using the same proxy.
                
> camel-http4 sends out a 'http4' GET request
> -------------------------------------------
>
>                 Key: CAMEL-4489
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4489
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-http
>         Environment: Windows XP, JDK 1.6
>            Reporter: Josh Deanor
>            Priority: Critical
>              Labels: http, http4
>
> When I try to do : from("http4://www.google.com/").to("mock:results") using apache camel-http4 scheme, a GET request is being sent out with 'http4' as the protocol - my proxy server fails to understand this as a protocol. 
> This is what the log looks like: 
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (RequestAddCookies.java132) - CookieSpec selected: best-match
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (RequestAuthCache.java75) - Auth cache not set in the context
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultRequestDirector.java643) - Attempt 1 to execute request
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java264) - Sending request: GET http4://www.google.com/ HTTP/1.1
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "GET http4://www.google.com/ HTTP/1.1[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "Host: www.google.com[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "Proxy-Connection: Keep-Alive[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java268) - >> GET http4://www.google.com/ HTTP/1.1
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java271) - >> Host: www.google.com
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java271) - >> Proxy-Connection: Keep-Alive
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - << "HTTP/1.1 502 Proxy Error 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CAMEL-4489) camel-http4 sends out a 'http4' GET request

Posted by "Josh Deanor (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-4489?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13115596#comment-13115596 ] 

Josh Deanor commented on CAMEL-4489:
------------------------------------

I tried with the patch, it does not work. I did something to make it work, but I'll leave it to you to figure out what the issue is.

I see the changes you've made, but that doesn't change what is returned here:

In HttpPollingConsumer.java:

{quote}

 protected HttpRequestBase createMethod() {
        String uri = endpoint.getEndpointUri();
        return new HttpGet(uri);
    }

{quote}

I had a debug point here on String uri=endpoint.getEndpointUri(); and I noticed that it pointed to 'http4://www.google.com' and to make it work, I changed the uri to "http://www.google.com" (during debug) and it returned the correct response (HTTP 200). 


                
> camel-http4 sends out a 'http4' GET request
> -------------------------------------------
>
>                 Key: CAMEL-4489
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4489
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-http
>         Environment: Windows XP, JDK 1.6
>            Reporter: Josh Deanor
>            Assignee: Willem Jiang
>            Priority: Critical
>              Labels: http, http4
>             Fix For: 2.7.4, 2.8.2, 2.9.0
>
>
> When I try to do : from("http4://www.google.com/").to("mock:results") using apache camel-http4 scheme, a GET request is being sent out with 'http4' as the protocol - my proxy server fails to understand this as a protocol. 
> This is what the log looks like: 
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (RequestAddCookies.java132) - CookieSpec selected: best-match
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (RequestAuthCache.java75) - Auth cache not set in the context
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultRequestDirector.java643) - Attempt 1 to execute request
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java264) - Sending request: GET http4://www.google.com/ HTTP/1.1
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "GET http4://www.google.com/ HTTP/1.1[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "Host: www.google.com[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "Proxy-Connection: Keep-Alive[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java268) - >> GET http4://www.google.com/ HTTP/1.1
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java271) - >> Host: www.google.com
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java271) - >> Proxy-Connection: Keep-Alive
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - << "HTTP/1.1 502 Proxy Error 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CAMEL-4489) camel-http4 sends out a 'http4' GET request

Posted by "Claus Ibsen (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-4489?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13115312#comment-13115312 ] 

Claus Ibsen commented on CAMEL-4489:
------------------------------------

Josh what are you trying to archive?

from("http4:xxx") will repeatable invoke a HTTP GET to that external url, and route the response as a message. What is your use case for doing that? 
                
> camel-http4 sends out a 'http4' GET request
> -------------------------------------------
>
>                 Key: CAMEL-4489
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4489
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-http
>         Environment: Windows XP, JDK 1.6
>            Reporter: Josh Deanor
>            Priority: Critical
>              Labels: http, http4
>
> When I try to do : from("http4://www.google.com/").to("mock:results") using apache camel-http4 scheme, a GET request is being sent out with 'http4' as the protocol - my proxy server fails to understand this as a protocol. 
> This is what the log looks like: 
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (RequestAddCookies.java132) - CookieSpec selected: best-match
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (RequestAuthCache.java75) - Auth cache not set in the context
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultRequestDirector.java643) - Attempt 1 to execute request
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java264) - Sending request: GET http4://www.google.com/ HTTP/1.1
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "GET http4://www.google.com/ HTTP/1.1[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "Host: www.google.com[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "Proxy-Connection: Keep-Alive[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java268) - >> GET http4://www.google.com/ HTTP/1.1
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java271) - >> Host: www.google.com
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java271) - >> Proxy-Connection: Keep-Alive
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - << "HTTP/1.1 502 Proxy Error 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Issue Comment Edited] (CAMEL-4489) camel-http4 sends out a 'http4' GET request

Posted by "Josh Deanor (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-4489?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13115596#comment-13115596 ] 

Josh Deanor edited comment on CAMEL-4489 at 9/27/11 4:04 PM:
-------------------------------------------------------------

I tried with the patch, it does not work. I did something to make it work, but I'll leave it to you to figure out what the issue is.

I see the changes you've made, but that doesn't change what is returned here:

In HttpPollingConsumer.java:

{quote}

 protected HttpRequestBase createMethod() {
        String uri = endpoint.getEndpointUri();
        return new HttpGet(uri);
    }

{quote}

I had a debug point here on String uri=endpoint.getEndpointUri(); and I noticed that it pointed to 'http4://www.google.com' and to make it work, I changed the uri to "http://www.google.com" (during debug) and it returned the correct response (HTTP 200). 


                
      was (Author: fedexp):
    I tried with the patch, it does not work. I did something to make it work, but I'll leave it to you to figure out what the issue is.

I see the changes you've made, but that doesn't change what is returned here:

In HttpPollingConsumer.java:

{quote}

 protected. HttpRequestBase createMethod() {
        String uri = endpoint.getEndpointUri();
        return new HttpGet(uri);
    }

{quote}

I had a debug point here on String uri=endpoint.getEndpointUri(); and I noticed that it pointed to 'http4://www.google.com' and to make it work, I changed the uri to "http://www.google.com" (during debug) and it returned the correct response (HTTP 200). 


                  
> camel-http4 sends out a 'http4' GET request
> -------------------------------------------
>
>                 Key: CAMEL-4489
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4489
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-http
>         Environment: Windows XP, JDK 1.6
>            Reporter: Josh Deanor
>            Assignee: Willem Jiang
>            Priority: Critical
>              Labels: http, http4
>             Fix For: 2.7.4, 2.8.2, 2.9.0
>
>
> When I try to do : from("http4://www.google.com/").to("mock:results") using apache camel-http4 scheme, a GET request is being sent out with 'http4' as the protocol - my proxy server fails to understand this as a protocol. 
> This is what the log looks like: 
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (RequestAddCookies.java132) - CookieSpec selected: best-match
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (RequestAuthCache.java75) - Auth cache not set in the context
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultRequestDirector.java643) - Attempt 1 to execute request
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java264) - Sending request: GET http4://www.google.com/ HTTP/1.1
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "GET http4://www.google.com/ HTTP/1.1[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "Host: www.google.com[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "Proxy-Connection: Keep-Alive[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java268) - >> GET http4://www.google.com/ HTTP/1.1
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java271) - >> Host: www.google.com
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java271) - >> Proxy-Connection: Keep-Alive
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - << "HTTP/1.1 502 Proxy Error 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CAMEL-4489) camel-http4 sends out a 'http4' GET request

Posted by "Josh Deanor (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-4489?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13116283#comment-13116283 ] 

Josh Deanor commented on CAMEL-4489:
------------------------------------

Willem, 

Thank you. I will look forward to your patch.
                
> camel-http4 sends out a 'http4' GET request
> -------------------------------------------
>
>                 Key: CAMEL-4489
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4489
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-http
>         Environment: Windows XP, JDK 1.6
>            Reporter: Josh Deanor
>            Assignee: Willem Jiang
>            Priority: Critical
>              Labels: http, http4
>             Fix For: 2.7.4, 2.8.2, 2.9.0
>
>
> When I try to do : from("http4://www.google.com/").to("mock:results") using apache camel-http4 scheme, a GET request is being sent out with 'http4' as the protocol - my proxy server fails to understand this as a protocol. 
> This is what the log looks like: 
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (RequestAddCookies.java132) - CookieSpec selected: best-match
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (RequestAuthCache.java75) - Auth cache not set in the context
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultRequestDirector.java643) - Attempt 1 to execute request
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java264) - Sending request: GET http4://www.google.com/ HTTP/1.1
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "GET http4://www.google.com/ HTTP/1.1[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "Host: www.google.com[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "Proxy-Connection: Keep-Alive[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java268) - >> GET http4://www.google.com/ HTTP/1.1
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java271) - >> Host: www.google.com
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java271) - >> Proxy-Connection: Keep-Alive
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - << "HTTP/1.1 502 Proxy Error 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Issue Comment Edited] (CAMEL-4489) camel-http4 sends out a 'http4' GET request

Posted by "Josh Deanor (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-4489?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13115382#comment-13115382 ] 

Josh Deanor edited comment on CAMEL-4489 at 9/27/11 10:23 AM:
--------------------------------------------------------------

Claus, Did you mean to ask - what am I trying to achieve? 
I am trying to read from a streaming http url... I know polling it won't help coz, I would need to have a connection open and kept-alive (I'll have to find a way around it). 

The issue here is that camel is sending a "GET *http4*://www.google.com" instead of "GET *http*://www.google.com" - this happens only when I use it in my proxy environment. I am not sure what the issue is, coz httpclient 4 works perfectly fine when used standalone, using the same proxy.
                
      was (Author: fedexp):
    Claus, Did you mean to ask - what am I trying to achieve? 
I am trying to read from a streaming http url... I know polling it won't help coz, I would need to have a connection open and kept-alive (I'll have to find a way around it). 

The issue here is that camel is not sending a "GET *http4*://www.google.com" instead of "GET *http*://www.google.com" - this happens only when I use it in my proxy environment. I am not sure what the issue is, coz httpclient 4 works perfectly fine when used standalone, using the same proxy.
                  
> camel-http4 sends out a 'http4' GET request
> -------------------------------------------
>
>                 Key: CAMEL-4489
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4489
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-http
>         Environment: Windows XP, JDK 1.6
>            Reporter: Josh Deanor
>            Priority: Critical
>              Labels: http, http4
>
> When I try to do : from("http4://www.google.com/").to("mock:results") using apache camel-http4 scheme, a GET request is being sent out with 'http4' as the protocol - my proxy server fails to understand this as a protocol. 
> This is what the log looks like: 
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (RequestAddCookies.java132) - CookieSpec selected: best-match
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (RequestAuthCache.java75) - Auth cache not set in the context
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultRequestDirector.java643) - Attempt 1 to execute request
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java264) - Sending request: GET http4://www.google.com/ HTTP/1.1
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "GET http4://www.google.com/ HTTP/1.1[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "Host: www.google.com[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "Proxy-Connection: Keep-Alive[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java268) - >> GET http4://www.google.com/ HTTP/1.1
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java271) - >> Host: www.google.com
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java271) - >> Proxy-Connection: Keep-Alive
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - << "HTTP/1.1 502 Proxy Error 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Issue Comment Edited] (CAMEL-4489) camel-http4 sends out a 'http4' GET request

Posted by "Josh Deanor (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-4489?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13115598#comment-13115598 ] 

Josh Deanor edited comment on CAMEL-4489 at 9/27/11 4:13 PM:
-------------------------------------------------------------

what you really need to fix, I believe, is the EndPoint URI. It cannot contain a http4 instead of http as protocol.
                
      was (Author: fedexp):
    what you really need to fix, I believe, is the EndPoint URI.
                  
> camel-http4 sends out a 'http4' GET request
> -------------------------------------------
>
>                 Key: CAMEL-4489
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4489
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-http
>         Environment: Windows XP, JDK 1.6
>            Reporter: Josh Deanor
>            Assignee: Willem Jiang
>            Priority: Critical
>              Labels: http, http4
>             Fix For: 2.7.4, 2.8.2, 2.9.0
>
>
> When I try to do : from("http4://www.google.com/").to("mock:results") using apache camel-http4 scheme, a GET request is being sent out with 'http4' as the protocol - my proxy server fails to understand this as a protocol. 
> This is what the log looks like: 
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (RequestAddCookies.java132) - CookieSpec selected: best-match
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (RequestAuthCache.java75) - Auth cache not set in the context
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultRequestDirector.java643) - Attempt 1 to execute request
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java264) - Sending request: GET http4://www.google.com/ HTTP/1.1
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "GET http4://www.google.com/ HTTP/1.1[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "Host: www.google.com[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "Proxy-Connection: Keep-Alive[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java268) - >> GET http4://www.google.com/ HTTP/1.1
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java271) - >> Host: www.google.com
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java271) - >> Proxy-Connection: Keep-Alive
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - << "HTTP/1.1 502 Proxy Error 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CAMEL-4489) camel-http4 sends out a 'http4' GET request

Posted by "Josh Deanor (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-4489?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13115383#comment-13115383 ] 

Josh Deanor commented on CAMEL-4489:
------------------------------------

I can confirm it coz, I've used a packet sniffer  (ethereal) and observed the GET request and it is indeed a http4 protocol and not http - I can attach the trace if you want.
                
> camel-http4 sends out a 'http4' GET request
> -------------------------------------------
>
>                 Key: CAMEL-4489
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4489
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-http
>         Environment: Windows XP, JDK 1.6
>            Reporter: Josh Deanor
>            Priority: Critical
>              Labels: http, http4
>
> When I try to do : from("http4://www.google.com/").to("mock:results") using apache camel-http4 scheme, a GET request is being sent out with 'http4' as the protocol - my proxy server fails to understand this as a protocol. 
> This is what the log looks like: 
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (RequestAddCookies.java132) - CookieSpec selected: best-match
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (RequestAuthCache.java75) - Auth cache not set in the context
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultRequestDirector.java643) - Attempt 1 to execute request
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java264) - Sending request: GET http4://www.google.com/ HTTP/1.1
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "GET http4://www.google.com/ HTTP/1.1[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "Host: www.google.com[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "Proxy-Connection: Keep-Alive[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java268) - >> GET http4://www.google.com/ HTTP/1.1
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java271) - >> Host: www.google.com
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java271) - >> Proxy-Connection: Keep-Alive
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - << "HTTP/1.1 502 Proxy Error 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CAMEL-4489) camel-http4 sends out a 'http4' GET request

Posted by "Josh Deanor (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-4489?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Josh Deanor updated CAMEL-4489:
-------------------------------

    Comment: was deleted

(was: The fix did not work, I added a comment to show you what made it work for me.)
    
> camel-http4 sends out a 'http4' GET request
> -------------------------------------------
>
>                 Key: CAMEL-4489
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4489
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-http
>         Environment: Windows XP, JDK 1.6
>            Reporter: Josh Deanor
>            Assignee: Willem Jiang
>            Priority: Critical
>              Labels: http, http4
>             Fix For: 2.7.4, 2.8.2, 2.9.0
>
>
> When I try to do : from("http4://www.google.com/").to("mock:results") using apache camel-http4 scheme, a GET request is being sent out with 'http4' as the protocol - my proxy server fails to understand this as a protocol. 
> This is what the log looks like: 
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (RequestAddCookies.java132) - CookieSpec selected: best-match
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (RequestAuthCache.java75) - Auth cache not set in the context
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultRequestDirector.java643) - Attempt 1 to execute request
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java264) - Sending request: GET http4://www.google.com/ HTTP/1.1
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "GET http4://www.google.com/ HTTP/1.1[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "Host: www.google.com[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "Proxy-Connection: Keep-Alive[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java268) - >> GET http4://www.google.com/ HTTP/1.1
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java271) - >> Host: www.google.com
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java271) - >> Proxy-Connection: Keep-Alive
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - << "HTTP/1.1 502 Proxy Error 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CAMEL-4489) camel-http4 sends out a 'http4' GET request

Posted by "Josh Deanor (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-4489?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13114902#comment-13114902 ] 

Josh Deanor commented on CAMEL-4489:
------------------------------------

I checked the same code from a non-proxy env and it seems to work fine. 
In my proxy environment however, ethereal trace tells me that a request for http4://www.google.com is being sent to the proxy!
                
> camel-http4 sends out a 'http4' GET request
> -------------------------------------------
>
>                 Key: CAMEL-4489
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4489
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-http
>         Environment: Windows XP, JDK 1.6
>            Reporter: Josh Deanor
>              Labels: http, http4
>
> When I try to do : from("http4://www.google.com/").to("mock:results") using apache camel-http4 scheme, a GET request is being sent out with 'http4' as the protocol - my proxy server fails to understand this as a protocol. 
> This is what the log looks like: 
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (RequestAddCookies.java132) - CookieSpec selected: best-match
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (RequestAuthCache.java75) - Auth cache not set in the context
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultRequestDirector.java643) - Attempt 1 to execute request
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java264) - Sending request: GET http4://www.google.com/ HTTP/1.1
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "GET http4://www.google.com/ HTTP/1.1[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "Host: www.google.com[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "Proxy-Connection: Keep-Alive[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java268) - >> GET http4://www.google.com/ HTTP/1.1
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java271) - >> Host: www.google.com
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java271) - >> Proxy-Connection: Keep-Alive
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - << "HTTP/1.1 502 Proxy Error 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Issue Comment Edited] (CAMEL-4489) camel-http4 sends out a 'http4' GET request

Posted by "Josh Deanor (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-4489?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13115598#comment-13115598 ] 

Josh Deanor edited comment on CAMEL-4489 at 9/27/11 4:31 PM:
-------------------------------------------------------------

what you really need to fix, I believe, is the EndPoint URI. It cannot contain a http4 instead of http as protocol.
Your changes were made to HttpEndPoint and HttpProducer files, but somehow my code never breaks in HttpProducer, instead it goes to HttpPollingConsumer all the time - may be you should look here to fix this issue?
                
      was (Author: fedexp):
    what you really need to fix, I believe, is the EndPoint URI. It cannot contain a http4 instead of http as protocol.
                  
> camel-http4 sends out a 'http4' GET request
> -------------------------------------------
>
>                 Key: CAMEL-4489
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4489
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-http
>         Environment: Windows XP, JDK 1.6
>            Reporter: Josh Deanor
>            Assignee: Willem Jiang
>            Priority: Critical
>              Labels: http, http4
>             Fix For: 2.7.4, 2.8.2, 2.9.0
>
>
> When I try to do : from("http4://www.google.com/").to("mock:results") using apache camel-http4 scheme, a GET request is being sent out with 'http4' as the protocol - my proxy server fails to understand this as a protocol. 
> This is what the log looks like: 
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (RequestAddCookies.java132) - CookieSpec selected: best-match
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (RequestAuthCache.java75) - Auth cache not set in the context
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultRequestDirector.java643) - Attempt 1 to execute request
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java264) - Sending request: GET http4://www.google.com/ HTTP/1.1
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "GET http4://www.google.com/ HTTP/1.1[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "Host: www.google.com[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "Proxy-Connection: Keep-Alive[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java268) - >> GET http4://www.google.com/ HTTP/1.1
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java271) - >> Host: www.google.com
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java271) - >> Proxy-Connection: Keep-Alive
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - << "HTTP/1.1 502 Proxy Error 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CAMEL-4489) camel-http4 sends out a 'http4' GET request

Posted by "Willem Jiang (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-4489?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13116278#comment-13116278 ] 

Willem Jiang commented on CAMEL-4489:
-------------------------------------

Hi Josh,

I'm sorry I didn't check all the path that could effect the http method url.
After went through the code and I found a way to verify my change and find a minor issue of http component.

I will commit a better patch shortly.

Willem
                
> camel-http4 sends out a 'http4' GET request
> -------------------------------------------
>
>                 Key: CAMEL-4489
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4489
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-http
>         Environment: Windows XP, JDK 1.6
>            Reporter: Josh Deanor
>            Assignee: Willem Jiang
>            Priority: Critical
>              Labels: http, http4
>             Fix For: 2.7.4, 2.8.2, 2.9.0
>
>
> When I try to do : from("http4://www.google.com/").to("mock:results") using apache camel-http4 scheme, a GET request is being sent out with 'http4' as the protocol - my proxy server fails to understand this as a protocol. 
> This is what the log looks like: 
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (RequestAddCookies.java132) - CookieSpec selected: best-match
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (RequestAuthCache.java75) - Auth cache not set in the context
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultRequestDirector.java643) - Attempt 1 to execute request
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java264) - Sending request: GET http4://www.google.com/ HTTP/1.1
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "GET http4://www.google.com/ HTTP/1.1[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "Host: www.google.com[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "Proxy-Connection: Keep-Alive[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java268) - >> GET http4://www.google.com/ HTTP/1.1
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java271) - >> Host: www.google.com
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java271) - >> Proxy-Connection: Keep-Alive
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - << "HTTP/1.1 502 Proxy Error 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Issue Comment Edited] (CAMEL-4489) camel-http4 sends out a 'http4' GET request

Posted by "Josh Deanor (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-4489?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13115596#comment-13115596 ] 

Josh Deanor edited comment on CAMEL-4489 at 9/27/11 4:12 PM:
-------------------------------------------------------------

I tried with the patch, it does not work. I did something to make it work, but I'll leave it to you to figure out what the issue is.

I see the changes you've made, but that doesn't change what is returned here:

In HttpPollingConsumer.java:

{code} protected HttpRequestBase createMethod() 
   {
        String uri = endpoint.getEndpointUri();
        return new HttpGet(uri);
    }
{code}

I had a debug point here on String uri=endpoint.getEndpointUri(); and I noticed that it pointed to 'http4://www.google.com' and to make it work, I changed the uri to "http://www.google.com" (during debug) and it returned the correct response (HTTP 200). 


                
      was (Author: fedexp):
    I tried with the patch, it does not work. I did something to make it work, but I'll leave it to you to figure out what the issue is.

I see the changes you've made, but that doesn't change what is returned here:

In HttpPollingConsumer.java:

{code|borderStyle=solid}

 protected HttpRequestBase createMethod() 
 {
        String uri = endpoint.getEndpointUri();
        return new HttpGet(uri);
    }

{code}

I had a debug point here on String uri=endpoint.getEndpointUri(); and I noticed that it pointed to 'http4://www.google.com' and to make it work, I changed the uri to "http://www.google.com" (during debug) and it returned the correct response (HTTP 200). 


                  
> camel-http4 sends out a 'http4' GET request
> -------------------------------------------
>
>                 Key: CAMEL-4489
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4489
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-http
>         Environment: Windows XP, JDK 1.6
>            Reporter: Josh Deanor
>            Assignee: Willem Jiang
>            Priority: Critical
>              Labels: http, http4
>             Fix For: 2.7.4, 2.8.2, 2.9.0
>
>
> When I try to do : from("http4://www.google.com/").to("mock:results") using apache camel-http4 scheme, a GET request is being sent out with 'http4' as the protocol - my proxy server fails to understand this as a protocol. 
> This is what the log looks like: 
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (RequestAddCookies.java132) - CookieSpec selected: best-match
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (RequestAuthCache.java75) - Auth cache not set in the context
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultRequestDirector.java643) - Attempt 1 to execute request
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java264) - Sending request: GET http4://www.google.com/ HTTP/1.1
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "GET http4://www.google.com/ HTTP/1.1[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "Host: www.google.com[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "Proxy-Connection: Keep-Alive[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - >> "[\r][\n]"
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java268) - >> GET http4://www.google.com/ HTTP/1.1
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java271) - >> Host: www.google.com
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (DefaultClientConnection.java271) - >> Proxy-Connection: Keep-Alive
>   DEBUG [Camel (camel-1) thread #0 - http4://www.google.com/] (Wire.java63) - << "HTTP/1.1 502 Proxy Error 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira