if (getuid() == geteuid())
#endif
{
- if (getenv("http_proxy")) ecore_con_url_proxy_set(target, getenv("http_proxy"));
+ //TIZEN ONLY (20171023): matched between url and proxy environment
+ /*if (getenv("http_proxy")) ecore_con_url_proxy_set(target, getenv("http_proxy"));
if (getenv("https_proxy")) ecore_con_url_proxy_set(target, getenv("https_proxy"));
- if (getenv("ftp_proxy")) ecore_con_url_proxy_set(target, getenv("ftp_proxy"));
+ if (getenv("ftp_proxy")) ecore_con_url_proxy_set(target, getenv("ftp_proxy"));*/
+ if ((!strncmp(url, "http://", strlen("http://"))) && (getenv("http_proxy")))
+ {
+ ecore_con_url_proxy_set(target, getenv("http_proxy"));
+ }
+ else if ((!strncmp(url, "https://", strlen("https://"))) && (getenv("https_proxy")))
+ {
+ ecore_con_url_proxy_set(target, getenv("https_proxy"));
+ }
+ else if ((!strncmp(url, "ftp://", strlen("ftp://"))) && (getenv("ftp_proxy")))
+ {
+ ecore_con_url_proxy_set(target, getenv("ftp_proxy"));
+ }
+ //
}
r = malloc(sizeof (Elm_Url));