Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-4489

camel-http4 sends out a 'http4' GET request

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • None
    • 2.7.4, 2.8.2, 2.9.0
    • camel-http
    • Windows XP, JDK 1.6

    • Moderate

    Description

      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

      Attachments

        Activity

          People

            njiang Willem Jiang
            fedexp Josh Deanor
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: