You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by "Jim Liu (JIRA)" <ji...@apache.org> on 2019/01/27 07:35:00 UTC
[jira] [Updated] (LIBCLOUD-1034) http proxy while https request
[ https://issues.apache.org/jira/browse/LIBCLOUD-1034?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jim Liu updated LIBCLOUD-1034:
------------------------------
Description:
{markdown}
Hello everyone, first apologize my poor english
im beginner and i have a question about http proxy(https://libcloud.readthedocs.io/en/latest/other/using-http-proxy.html)
from here: https://github.com/apache/libcloud/blob/trunk/libcloud/http.py#L117
```python
if parsed.scheme != 'http':
raise ValueError('Only http proxies are supported')
```
i guess this code means we cant use proxy on https requests, sounds not cool for nowadays
from here: https://github.com/apache/libcloud/blob/trunk/libcloud/http.py#L102
```python
self.session.proxies = {
# requests assume `self.proxy_scheme` as http/https protocol
# so if we want proxy our https request
# we need 2 add `'https': 'http://127.0.0.1:1080'` instead of `http` k/v pair
self.proxy_scheme: proxy_url
}
```
i dont know if this `self.proxy_scheme` has other meaning or not
please let me know if i have any misunderstand or mistake, Thanks <3
{markdown}
was:
Hello everyone, first apologize my poor english
im beginner and i have a question about http proxy(https://libcloud.readthedocs.io/en/latest/other/using-http-proxy.html)
from here: https://github.com/apache/libcloud/blob/trunk/libcloud/http.py#L117
```python
if parsed.scheme != 'http':
raise ValueError('Only http proxies are supported')
```
i guess this code means we cant use proxy on https requests, sounds not cool for nowadays
from here: https://github.com/apache/libcloud/blob/trunk/libcloud/http.py#L102
```python
self.session.proxies = {
# requests assume `self.proxy_scheme` as http/https protocol
# so if we want proxy our https request
# we need 2 add `'https': 'http://127.0.0.1:1080'` instead of `http` k/v pair
self.proxy_scheme: proxy_url
}
```
i dont know if this `self.proxy_scheme` has other meaning or not
please let me know if i have any misunderstand or mistake, Thanks <3
> http proxy while https request
> ------------------------------
>
> Key: LIBCLOUD-1034
> URL: https://issues.apache.org/jira/browse/LIBCLOUD-1034
> Project: Libcloud
> Issue Type: Bug
> Components: Core
> Affects Versions: 2.4.0
> Environment: any env with tag2.4.0
> Reporter: Jim Liu
> Priority: Major
> Labels: easyfix
>
> {markdown}
> Hello everyone, first apologize my poor english
> im beginner and i have a question about http proxy(https://libcloud.readthedocs.io/en/latest/other/using-http-proxy.html)
> from here: https://github.com/apache/libcloud/blob/trunk/libcloud/http.py#L117
> ```python
> if parsed.scheme != 'http':
> raise ValueError('Only http proxies are supported')
> ```
> i guess this code means we cant use proxy on https requests, sounds not cool for nowadays
> from here: https://github.com/apache/libcloud/blob/trunk/libcloud/http.py#L102
> ```python
> self.session.proxies = {
> # requests assume `self.proxy_scheme` as http/https protocol
> # so if we want proxy our https request
> # we need 2 add `'https': 'http://127.0.0.1:1080'` instead of `http` k/v pair
> self.proxy_scheme: proxy_url
> }
> ```
> i dont know if this `self.proxy_scheme` has other meaning or not
> please let me know if i have any misunderstand or mistake, Thanks <3
> {markdown}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)