Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
mnh00
Level 7

HTTP PUT for RESTful Web services on roUrlTransfer?

Is there a way to "influence" roUrlTransfer to issue HTTP PUTs instead of GET/POST? In order to communicate with RESTful Web services you need all the HTTP verbs, but there's little else roUrlTransfer needs to do to handle them. One example usage: Apache and IIS allow via HTTP PUT to upload data without scripts on the other end.
0 Kudos
32 REPLIES 32
RokuKevin
Level 9

Re: HTTP PUT for RESTful Web services on roUrlTransfer?

Yes. roUrlTransfer has several POST methods:
PostFromString()
PostFromFile()
AsyncPostFromString()
AsyncPostFromFile()

--Kevin
0 Kudos
kbenson
Level 7

Re: HTTP PUT for RESTful Web services on roUrlTransfer?

"RokuKevin" wrote:
Yes. roUrlTransfer has several POST methods:
PostFromString()
PostFromFile()
AsyncPostFromString()
AsyncPostFromFile()

--Kevin


I think you missed his point. He's asking for an HTTP PUT command, as listed here http://en.wikipedia.org/wiki/Hypertext_ ... st_methods

It makes sense to add DELETE at the same time as PUT, if it's added. Many API's that require PUT also require DELETE to be fully used.
-- GandK Labs
Check out Reversi! in the channel store!
0 Kudos
gonzotek
Level 9

Re: HTTP PUT for RESTful Web services on roUrlTransfer?

"kbenson" wrote:
"RokuKevin" wrote:
Yes. roUrlTransfer has several POST methods:
PostFromString()
PostFromFile()
AsyncPostFromString()
AsyncPostFromFile()

--Kevin


I think you missed his point. He's asking for an HTTP PUT command, as listed here http://en.wikipedia.org/wiki/Hypertext_ ... st_methods

It makes sense to add DELETE at the same time as PUT, if it's added. Many API's that require PUT also require DELETE to be fully used.
+1
Remoku.tv - A free web app for Roku Remote Control!
Want to control your Roku from nearly any phone, computer or tablet? Get started at http://help.remoku.tv
by Apps4TV - Applications for television and beyond: http://www.apps4tv.com
0 Kudos
RokuKevin
Level 9

Re: HTTP PUT for RESTful Web services on roUrlTransfer?

Thanks for the clarification. You are correct that there is not currently a way to do a PUT or DELETE.

--Kevin
0 Kudos

Re: HTTP PUT for RESTful Web services on roUrlTransfer?

"RokuKevin" wrote:
Thanks for the clarification. You are correct that there is not currently a way to do a PUT or DELETE.

--Kevin


Hey Kevin,

Any plans to add these commands to the roUrlTransfer interface ? There are some APIs that uses that for important features.
0 Kudos
destruk
Level 10

Re: HTTP PUT for RESTful Web services on roUrlTransfer?

After two years this should be split into its own thread.
0 Kudos
kbenson
Level 7

Re: HTTP PUT for RESTful Web services on roUrlTransfer?

It's not ideal, but someone could write their own HTTP library with roStreamSocket. It wouldn't be hard, per-se, just time consuming. Pick your favortite HTTP client library implemented in a pure scripting language, and port.

As I said, not ideal, but at least now possible.
-- GandK Labs
Check out Reversi! in the channel store!
0 Kudos
EnTerr
Level 11

Re: HTTP PUT for RESTful Web services on roUrlTransfer?

Reinventing the wheel will be outright silly, provided that there is nothing special about PUT and DELETE - trivial methods need to be added by Roku for compliance to RESTful calls.
0 Kudos
RokuJoel
Roku Employee
Roku Employee

Re: HTTP PUT for RESTful Web services on roUrlTransfer?

Feature Request Bug filed.

- Joel
0 Kudos