jsj123
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2010
06:04 PM
use curl
Is it possible to use curl (or similar) to submit the .zip file to the roku? Trying to write batch file to automate some of the development work.
--Stephen
--Stephen
3 REPLIES 3
bbefilms
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2010
09:09 PM
Re: use curl
Yes, check out the makefile in the videoplayer exmple; the 'install' target in this makefile uses curl to do this.
EngoTom
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2010
02:07 AM
Re: use curl
Strange???
OS: Windows7
When I run the following curl command it only uploads 80 bytes. This is the same result as if I were doing a form post with the input=file set to input=text.
curl -s -S -F "mysubmit=Install" -F "archive=C:\Users\me\Documents\Visual Studio 2008\Projects\TestApp.Roku\test2.zip" -F "passwd=" http://192.168.1.77/plugin_install
What I would really like to do is do an httpRequest in C# but the named input field is causing the server to respond with input field not found. Anyone get this upload to work in .NET?
OS: Windows7
When I run the following curl command it only uploads 80 bytes. This is the same result as if I were doing a form post with the input=file set to input=text.
curl -s -S -F "mysubmit=Install" -F "archive=C:\Users\me\Documents\Visual Studio 2008\Projects\TestApp.Roku\test2.zip" -F "passwd=" http://192.168.1.77/plugin_install
What I would really like to do is do an httpRequest in C# but the named input field is causing the server to respond with input field not found. Anyone get this upload to work in .NET?
EngoTom
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2010
11:00 AM
Re: use curl
nevermind. Figured this out. Needed the @ in front of the filename
curl -s -S -F "archive=@C:\Temp\test2.zip" -F "mysubmit=Replace" -F "passwd=" http://192.168.1.77/plugin_install
curl -s -S -F "archive=@C:\Temp\test2.zip" -F "mysubmit=Replace" -F "passwd=" http://192.168.1.77/plugin_install