Uploaded image for project: 'CouchDB'
  1. CouchDB
  2. COUCHDB-1213

proxy with external api doesn't work

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 1.1
    • Fix Version/s: None
    • Component/s: HTTP Interface
    • Labels:

      Description

      As discussed on IRC, I'm trying to use an external web API, but every request to the handler produces an infinite loop.

      This is most likely due to not passing on the correct Host header.

      Here's an example:

      _google =

      {couch_httpd_proxy, handle_proxy_req, <<"http://www.google.com/ig">>}

      Then request with:

      curl -L -X GET http://127.0.0.1:5984/_google/calculator?hl=en&q=100EUR%3D%3FAUD

      Paul Davis did a quick patch: http://friendpaste.com/62T88HOYw8QyaoIJoXEGXr

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                till Till Klampaeckel
              • Votes:
                1 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: