# HTTP Authentication with RSS.feedfromurl

**URL:** <https://forums.plex.tv/t/http-authentication-with-rss-feedfromurl/143003>\
**Category:** Dev/API Corner\
**Tags:** plugin-dev\
**Created:** [April 22, 2016, 9:48am UTC](https://forums.plex.tv/t/http-authentication-with-rss-feedfromurl/143003 "2016-04-22T09:48:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![almostepic89](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@almostepic89](https://forums.plex.tv/u/almostepic89)\
**Post date:** [April 22, 2016, 9:48am UTC](https://forums.plex.tv/t/http-authentication-with-rss-feedfromurl/143003/1 "2016-04-22T09:48:02Z")

</div>

I’m in the process of developing a channel to connect to a paid subscription podcast which requires HTTP Authentication to access the RSS feed. When entering the feed’s Url to RSS.FEEDFROMURL([http://username:password@webaddress](http://username:password@webaddress)) I am receiving an error about non numeric port number. I’m positive this is because the colon between username and password is being parsed as the separator between what plex believes is the Web address and a port number. Any ideas on a work around for this?

(sorry about poor formatting of this question, I am on a cell phone).

---

<div class="post-metadata">

**Author:** ![coryo123](https://avatars.discourse-cdn.com/v4/letter/c/a587f6/32.png) [@coryo123](https://forums.plex.tv/u/coryo123)\
**Post date:** [April 22, 2016, 10:23pm UTC](https://forums.plex.tv/t/http-authentication-with-rss-feedfromurl/143003/2 "2016-04-22T22:23:11Z")

</div>

> **[Basic access authentication](https://en.wikipedia.org/wiki/Basic_access_authentication)**
>
> In the context of an HTTP transaction, basic access authentication is a method for an HTTP user agent (e.g. a web browser) to provide a user name and password when making a request.
> It is specified in RFC 7617 from 2015, which obsoletes RFC 2617 from 1999.
> HTTP Basic authentication (BA) implementation is the simplest technique for enforcing access controls to web resources because it does not require cookies, session identifiers, or login pages; rather, HTTP Basic authentication uses standard f...

I think you can do something like this

```auto
import base64

auth_string = '{}:{}'.format(user, passwd)
encoded = base64.b64encode(auth_string)
RSS.FeedFromUrl('http://domain.com', headers={'Authorization': 'Basic {}'.format(encoded)})

```

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [January 8, 2020, 7:57pm UTC](https://forums.plex.tv/t/http-authentication-with-rss-feedfromurl/143003/3 "2020-01-08T19:57:04Z")

</div>


