# RSS Ticker - problems with proxy exception?

**URL:** <https://community.xibo.org.uk/t/rss-ticker-problems-with-proxy-exception/8273>\
**Category:** Get Help\
**Created:** [January 2, 2017, 3:34pm UTC](https://community.xibo.org.uk/t/rss-ticker-problems-with-proxy-exception/8273 "2017-01-02T15:34:12Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mondlicht81](https://community.xibo.org.uk/user_avatar/community.xibo.org.uk/mondlicht81/32/4793_2.png) [@Mondlicht81](https://community.xibo.org.uk/u/Mondlicht81)\
**Post date:** [January 2, 2017, 3:34pm UTC](https://community.xibo.org.uk/t/rss-ticker-problems-with-proxy-exception/8273/1 "2017-01-02T15:34:12Z")

</div>

Hi,

I have a proxy for connection to the internet, but intranet pages have to be accessed without proxy. Therefore I have a list of (sub)domains in the proxy\_exceptions.  
But it seems that the RSS feeds are only displayed when the source is in the internet.  
Can it be that SimplePie has a problem here?

I’m asking because no matter what I define in proxy\_exceptions, I get this log output:

```
755
17-01-02 04:29:50
CMS
Feed Error: This XML document is invalid, likely due to invalid characters. XML error: SYSTEM or PUBLIC, the URI is missing at line 12, column 48

754
17-01-02 04:29:50
CMS
Config
isProxyException
***.net
in localhost, ***.com,***.com, ***.net,10.20.0.0/16,127.0.0.1,***.com, ***.com,***.com.
Pos = 

753
17-01-02 04:29:50
CMS
Loading SimplePie to handle RSS parsing.http://***.net/statusnet/index.php/api/statuses/public_timeline.rss?count=8

```

Actually my host should find a match in the proxy exceptions list.  
Are you aware of any bug here?

Thanks a lot in advance for your help.

---

<div class="post-metadata">

**Author:** ![SteitzTo](https://community.xibo.org.uk/letter_avatar_proxy/v4/letter/s/d07c76/32.png) [@SteitzTo](https://community.xibo.org.uk/u/SteitzTo)\
**Post date:** [January 2, 2017, 6:50pm UTC](https://community.xibo.org.uk/t/rss-ticker-problems-with-proxy-exception/8273/2 "2017-01-02T18:50:15Z")

</div>

Hi Mondlicht,

Do you have, on your hostsystem where the CMS is runnng, in the systemkonfiguration Proxy-server enable and your Proxy exeptions write there?

Greetings Torsten

---

<div class="post-metadata">

**Author:** ![Mondlicht81](https://community.xibo.org.uk/user_avatar/community.xibo.org.uk/mondlicht81/32/4793_2.png) [@Mondlicht81](https://community.xibo.org.uk/u/Mondlicht81)\
**Post date:** [January 4, 2017, 3:50pm UTC](https://community.xibo.org.uk/t/rss-ticker-problems-with-proxy-exception/8273/3 "2017-01-04T15:50:07Z")

</div>

Hi Thorsten,

I fixed the problem by correctly setting the proxy and exceptions in the gnome system settings and removing the proxy from the xibo server configuration.

Thanks for the hint.

---

<div class="post-metadata">

**Author:** ![SteitzTo](https://community.xibo.org.uk/letter_avatar_proxy/v4/letter/s/d07c76/32.png) [@SteitzTo](https://community.xibo.org.uk/u/SteitzTo)\
**Post date:** [January 4, 2017, 4:43pm UTC](https://community.xibo.org.uk/t/rss-ticker-problems-with-proxy-exception/8273/4 "2017-01-04T16:43:43Z")

</div>

Cool. Nice to hear that my hint helps you!

---

<div class="post-metadata">

**Author:** ![Mondlicht81](https://community.xibo.org.uk/user_avatar/community.xibo.org.uk/mondlicht81/32/4793_2.png) [@Mondlicht81](https://community.xibo.org.uk/u/Mondlicht81)\
**Post date:** [January 5, 2017, 11:02am UTC](https://community.xibo.org.uk/t/rss-ticker-problems-with-proxy-exception/8273/5 "2017-01-05T11:02:28Z")

</div>

Well… after some playing around, it seems that the twitter api doesn’t get the system configured proxy. The rest seems to work. Somehow strange I think.

---

<div class="post-metadata">

**Author:** ![Mondlicht81](https://community.xibo.org.uk/user_avatar/community.xibo.org.uk/mondlicht81/32/4793_2.png) [@Mondlicht81](https://community.xibo.org.uk/u/Mondlicht81)\
**Post date:** [January 5, 2017, 12:09pm UTC](https://community.xibo.org.uk/t/rss-ticker-problems-with-proxy-exception/8273/6 "2017-01-05T12:09:35Z")

</div>

It seems I am back at my original problem.  
When configuring only the system proxy in the gnome settings, the proxy is not being used at all.  
When configuring only the proxy in the xibo server settings, the proxy\_exceptions are not correctly used, as described in the first post.  
When configuring the proxy with exceptions both in the system and xibo settings, it’s the same as with only the xibo settings.

My host system is Debian Wheezy, if this is of interest.

---

<div class="post-metadata">

**Author:** ![Mondlicht81](https://community.xibo.org.uk/user_avatar/community.xibo.org.uk/mondlicht81/32/4793_2.png) [@Mondlicht81](https://community.xibo.org.uk/u/Mondlicht81)\
**Post date:** [January 5, 2017, 2:28pm UTC](https://community.xibo.org.uk/t/rss-ticker-problems-with-proxy-exception/8273/7 "2017-01-05T14:28:25Z")

</div>

I finally managed to get the proxy exceptions list working. stripos doesn’t work here. I put the exceptions into an array and checked each entry.

```
public static function isProxyException($host)
{
$strippedHost=parse_url($host,1);
//$strippedHost=$host;       
$proxyException = Config::GetSetting('PROXY_EXCEPTIONS');
$proxyExceptionArray = explode(',', $proxyException);
foreach ($proxyExceptionArray as $proxyExceptionArrayEntry){
    if (stripos($strippedHost, $proxyExceptionArrayEntry) !== false)
    {
        Debug::Audit($strippedHost . ' in ' . $proxyException . '. Included in: ' . $proxyExceptionArrayEntry);                
        return (true);
    }    

}
    //Debug::Audit($strippedHost . ' in ' . $proxyException . '. Pos = ' . stripos($strippedHost, $proxyException));

    return (false);
}
```

---

<div class="post-metadata">

**Author:** ![Mondlicht81](https://community.xibo.org.uk/user_avatar/community.xibo.org.uk/mondlicht81/32/4793_2.png) [@Mondlicht81](https://community.xibo.org.uk/u/Mondlicht81)\
**Post date:** [January 5, 2017, 3:15pm UTC](https://community.xibo.org.uk/t/rss-ticker-problems-with-proxy-exception/8273/8 "2017-01-05T15:15:23Z")

</div>

Still I have issues with the Twitter module and the proxy. Somehow the extra header defined in twitter.module.php (CURLOPT\_HTTPHEADER) gets overwritten in a way that even Wireshark doesn’t decode it correctly.  
…more things to be analyzed in the next days…

---

<div class="post-metadata">

**Author:** ![Mondlicht81](https://community.xibo.org.uk/user_avatar/community.xibo.org.uk/mondlicht81/32/4793_2.png) [@Mondlicht81](https://community.xibo.org.uk/u/Mondlicht81)\
**Post date:** [February 27, 2018, 2:28pm UTC](https://community.xibo.org.uk/t/rss-ticker-problems-with-proxy-exception/8273/9 "2018-02-27T14:28:54Z")

</div>

Opened a separate topic for the Twitter Proxy issue.

> [@Twitter module not working with Proxy](https://community.xibo.org.uk/t/twitter-module-not-working-with-proxy/13477):
>
> As suggested by Dan, additionally to the GitHub issue ([https://github.com/xibosignage/xibo/issues/1335](https://github.com/xibosignage/xibo/issues/1335)) I’m opening a new topic here. Hi all, I have some issues with the Twitter module. The Twitter module works fine with direct connection to the internet. I configured both API key and secret, and I can get feeds. BUT: as soon as I configure a proxy, it stops working. Through Wireshark, I found out that the HTTP POST request to [https://api.twitter.com/oauth2/token](https://api.twitter.com/oauth2/token) seems to be malformed in ca…

---

<div class="post-metadata">

**Author:** ![system](https://community.xibo.org.uk/uploads/default/original/2X/a/a8759c2d8cc561474733895ac75beeb830f5d8ca.png) [@system](https://community.xibo.org.uk/u/system)\
**Post date:** [March 4, 2020, 5:06pm UTC](https://community.xibo.org.uk/t/rss-ticker-problems-with-proxy-exception/8273/10 "2020-03-04T17:06:22Z")

</div>

Closed on March 4, 2020, 5:06pm UTC


