Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
mnh00
Visitor

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
Visitor

Re: HTTP PUT for RESTful Web services on roUrlTransfer?

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

--Kevin
0 Kudos
kbenson
Visitor

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
Visitor

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
Visitor

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
marcelo_cabral
Roku Guru

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
Streaming Star

Re: HTTP PUT for RESTful Web services on roUrlTransfer?

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

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
Roku Guru

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
Binge Watcher

Re: HTTP PUT for RESTful Web services on roUrlTransfer?

Feature Request Bug filed.

- Joel
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.