# Python, HTTP API and Remote.xml - HOW?

**URL:** <https://forums.plex.tv/t/python-http-api-and-remote-xml-how/9790>\
**Category:** Dev/API Corner\
**Tags:** other-dev\
**Created:** [June 28, 2011, 10:53am UTC](https://forums.plex.tv/t/python-http-api-and-remote-xml-how/9790 "2011-06-28T10:53:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bigbadrabbit](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/bigbadrabbit/32/343152_2.png) [@bigbadrabbit](https://forums.plex.tv/u/bigbadrabbit)\
**Post date:** [June 28, 2011, 10:53am UTC](https://forums.plex.tv/t/python-http-api-and-remote-xml-how/9790/1 "2011-06-28T10:53:33Z")

</div>

Until now i controlled the volume of my AV receiver with **Apple Aluminium Remote** , **iRed2** and **IRTRans** Ethernet via applescript in the AppleRemote.xml.  
  
  
  
See this thread for more info:  
  
[http://forums.plexapp.com/index.php/topic/25488-applescript-and-fullscreenvideo-freeze/](http://forums.plexapp.com/index.php/topic/25488-applescript-and-fullscreenvideo-freeze/)  
  
  
  
  
  
I’d like to get rid of the applescript and use python and HTTP API.  
  
I can control the IRTrans Modul by calling an URL like this:

```auto

http://10.0.5.1/send.htm?remote=sony-main&command=volup

```

  
  
\*\*What's the best way to run this in the AppleRemote.xml and how?\*\*  
Thanks!

---

<div class="post-metadata">

**Author:** ![bigbadrabbit](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/bigbadrabbit/32/343152_2.png) [@bigbadrabbit](https://forums.plex.tv/u/bigbadrabbit)\
**Post date:** [June 28, 2011, 8:05pm UTC](https://forums.plex.tv/t/python-http-api-and-remote-xml-how/9790/2 "2011-06-28T20:05:57Z")

</div>

\*\*How can i implement

```auto

http://10.0.5.1/send.htm?remote=sony-main&command=volup

```

  
into a Remote.xml?\*\*

---

<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:** [December 20, 2019, 9:21pm UTC](https://forums.plex.tv/t/python-http-api-and-remote-xml-how/9790/3 "2019-12-20T21:21:40Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
