{"action":"created","issue":{"url":"https://api.github.com/repos/pramsey/pgsql-http/issues/76","repository_url":"https://api.github.com/repos/pramsey/pgsql-http","labels_url":"https://api.github.com/repos/pramsey/pgsql-http/issues/76/labels{/name}","comments_url":"https://api.github.com/repos/pramsey/pgsql-http/issues/76/comments","events_url":"https://api.github.com/repos/pramsey/pgsql-http/issues/76/events","html_url":"https://github.com/pramsey/pgsql-http/issues/76","id":338717434,"node_id":"MDU6SXNzdWUzMzg3MTc0MzQ=","number":76,"title":"http_set_curlopt() works one time","user":{"login":"jotpe","id":3539168,"node_id":"MDQ6VXNlcjM1MzkxNjg=","avatar_url":"https://avatars0.githubusercontent.com/u/3539168?v=4","gravatar_id":"","url":"https://api.github.com/users/jotpe","html_url":"https://github.com/jotpe","followers_url":"https://api.github.com/users/jotpe/followers","following_url":"https://api.github.com/users/jotpe/following{/other_user}","gists_url":"https://api.github.com/users/jotpe/gists{/gist_id}","starred_url":"https://api.github.com/users/jotpe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jotpe/subscriptions","organizations_url":"https://api.github.com/users/jotpe/orgs","repos_url":"https://api.github.com/users/jotpe/repos","events_url":"https://api.github.com/users/jotpe/events{/privacy}","received_events_url":"https://api.github.com/users/jotpe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-05T20:35:44Z","updated_at":"2018-07-05T20:40:00Z","closed_at":null,"author_association":"NONE","body":"I am using the latest release 1.2.3.\r\n\r\nI noticed today that the http extension does not save the CURL options permanently (well, permanently within the session). I have entered a proxy with port and access data. But on the second call, an error message like host not resolved (from a company intranet) appears.\r\n\r\nI can't exactly recreate the initial situation, but it's basically similar. I'm setting a proxy that doesn't exist. Then I expect on every call an error message that the proxy refuses the connection, but the error message only comes once:\r\n\r\n```\r\njotpe=> select http_set_curlopt('CURLOPT_PROXY', '127.0.0.1');\r\n http_set_curlopt \r\n------------------\r\n t\r\n(1 Zeile)\r\n\r\njotpe=> SELECT content FROM http_get('http://httpbin.org/ip');\r\nFEHLER:  Failed to connect to 127.0.0.1 port 1080: Verbindungsaufbau abgelehnt\r\njotpe=> SELECT content FROM http_get('http://httpbin.org/ip');\r\n          content           \r\n----------------------------\r\n {\"origin\":\"re.pl.ac.ed\"}+\r\n \r\n(1 Zeile)\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/pramsey/pgsql-http/issues/comments/402845998","html_url":"https://github.com/pramsey/pgsql-http/issues/76#issuecomment-402845998","issue_url":"https://api.github.com/repos/pramsey/pgsql-http/issues/76","id":402845998,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMjg0NTk5OA==","user":{"login":"pramsey","id":113883,"node_id":"MDQ6VXNlcjExMzg4Mw==","avatar_url":"https://avatars3.githubusercontent.com/u/113883?v=4","gravatar_id":"","url":"https://api.github.com/users/pramsey","html_url":"https://github.com/pramsey","followers_url":"https://api.github.com/users/pramsey/followers","following_url":"https://api.github.com/users/pramsey/following{/other_user}","gists_url":"https://api.github.com/users/pramsey/gists{/gist_id}","starred_url":"https://api.github.com/users/pramsey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pramsey/subscriptions","organizations_url":"https://api.github.com/users/pramsey/orgs","repos_url":"https://api.github.com/users/pramsey/repos","events_url":"https://api.github.com/users/pramsey/events{/privacy}","received_events_url":"https://api.github.com/users/pramsey/received_events","type":"User","site_admin":false},"created_at":"2018-07-05T20:40:00Z","updated_at":"2018-07-05T20:40:00Z","author_association":"OWNER","body":"When set within a session on a particular backend, I'd hope the settings persist: the curl connection object is cached for the lifetime of the backend, and the settings are set there.  Is it possible you're actually connecting to a couple separate backends?"}}
{"actor":{"display_login":"pramsey"}}