{"action":"created","issue":{"url":"https://api.github.com/repos/robohydra/robohydra/issues/3","labels_url":"https://api.github.com/repos/robohydra/robohydra/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/robohydra/robohydra/issues/3/comments","events_url":"https://api.github.com/repos/robohydra/robohydra/issues/3/events","html_url":"https://github.com/robohydra/robohydra/issues/3","id":5781443,"number":3,"title":"proxyTo from behind corporate proxy not working","user":{"login":"drcabana","id":314158,"avatar_url":"https://avatars.githubusercontent.com/u/314158?v=3","gravatar_id":"","url":"https://api.github.com/users/drcabana","html_url":"https://github.com/drcabana","followers_url":"https://api.github.com/users/drcabana/followers","following_url":"https://api.github.com/users/drcabana/following{/other_user}","gists_url":"https://api.github.com/users/drcabana/gists{/gist_id}","starred_url":"https://api.github.com/users/drcabana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drcabana/subscriptions","organizations_url":"https://api.github.com/users/drcabana/orgs","repos_url":"https://api.github.com/users/drcabana/repos","events_url":"https://api.github.com/users/drcabana/events{/privacy}","received_events_url":"https://api.github.com/users/drcabana/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":17,"created_at":"2012-07-23T15:31:27Z","updated_at":"2015-09-26T18:14:59Z","closed_at":null,"body":"Hi,\n\nI am trying to use the proxyTo feature from behind a corporate firewall and squid proxy.  So far I have not been able to make things work. I suspect the problem is because of  interactions with the  squid proxy.  \n\nI simplified the duckduckgo example the comes with RoboHydra, as follows:\n\nvar RoboHydraHeadProxy      = require(\"robohydra\").heads.RoboHydraHeadProxy;\n       \n   exports.getBodyParts = function(conf) {\n       return {\n           heads: [\n               new RoboHydraHeadProxy({\n                   mountPath: '/duck',\n                   proxyTo: 'http://duckduckgo.com'\n               })   ]   };  };  \n\nWhen I visit localhost:3000/duck I get a 502 error.  Here a the request/response headers:\n\nGET /duck/ HTTP/1.1\nHost: localhost:3000\nConnection: keep-alive\nUser-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.19 (KHTML, like Gecko) Ubuntu/11.10 Chromium/18.0.1025.168 Chrome/18.0.1025.168 Safari/535.19\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\nAccept-Encoding: gzip,deflate,sdch\nAccept-Language: en-US,en;q=0.8\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3\n\nHTTP/1.1 502 Bad Gateway\nserver: squid/2.7.STABLE9\ndate: Mon, 23 Jul 2012 15:14:09 GMT\ncontent-type: text/html\ncontent-length: 980\nx-squid-error: ERR_ZERO_SIZE_OBJECT 0\nx-cache: MISS from transproxy.unx.sas.com\nx-cache-lookup: MISS from transproxy.unx.sas.com:3128\nconnection: close\n\nAny ideas on how I might get this to work?  I suspect I m not the only user working behind a proxy.  Any help would be appreciated. \n\nAdditional notes: I turned off the firewall on my local machine, that made no difference.\n\nYours,\nDavid Cabana"},"comment":{"url":"https://api.github.com/repos/robohydra/robohydra/issues/comments/143477222","html_url":"https://github.com/robohydra/robohydra/issues/3#issuecomment-143477222","issue_url":"https://api.github.com/repos/robohydra/robohydra/issues/3","id":143477222,"user":{"login":"emanchado","id":65728,"avatar_url":"https://avatars.githubusercontent.com/u/65728?v=3","gravatar_id":"","url":"https://api.github.com/users/emanchado","html_url":"https://github.com/emanchado","followers_url":"https://api.github.com/users/emanchado/followers","following_url":"https://api.github.com/users/emanchado/following{/other_user}","gists_url":"https://api.github.com/users/emanchado/gists{/gist_id}","starred_url":"https://api.github.com/users/emanchado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emanchado/subscriptions","organizations_url":"https://api.github.com/users/emanchado/orgs","repos_url":"https://api.github.com/users/emanchado/repos","events_url":"https://api.github.com/users/emanchado/events{/privacy}","received_events_url":"https://api.github.com/users/emanchado/received_events","type":"User","site_admin":false},"created_at":"2015-09-26T18:14:59Z","updated_at":"2015-09-26T18:14:59Z","body":"@RIAstar? Have you had time to test this? If you confirm that this works I'll probably release a new version with this new feature."}}