New topic: HTTP POST with binary file
<http://forums.realsoftware.com/viewtopic.php?t=45825> Page 1 of 1 [ 7 posts ] Previous topic | Next topic Author Message frankieman Post subject: HTTP POST with binary filePosted: Tue Nov 06, 2012 10:06 pm Joined: Tue Nov 06, 2012 9:22 pm Posts: 2 New Real Studio user here. Please be nice! Question: Has anyone successfully done a HTTP POST with a binary file? Even more specifically: has anyone done it with Parse.com? I've been banging my head trying to find any projects, examples, anything on doing a HTTP POST with a binary file. I've also tried unsuccessfully using CURLMBS (and would purchase it -- and this Real Studio demo -- if I could get it to do what I need to do). -- frankieman Top simulanics Post subject: Re: HTTP POST with binary filePosted: Wed Nov 07, 2012 12:44 am Joined: Sun Aug 12, 2007 10:10 am Posts: 814 Location: Boiling Springs, SC I will post an example tomorrow morning. _________________ Matthew A. Combatti Real Studio 2012 r1.1 Visit Real Studio Developer's Spot! Systems: Windows XP/Windows Vista/Windows Server 2008 r2/Windows 7/Windows 8 Beta Mac OSX 10.5/Mac OSX 10.6/Mac OSX Server/Ubuntu/Debian/Suse/Red Hat/ Windows Server 2011/CentOS 5.4 /ReactOS/SimOS ~All REAL Compatible~ Top frankieman Post subject: Re: HTTP POST with binary filePosted: Wed Nov 07, 2012 12:45 am Joined: Tue Nov 06, 2012 9:22 pm Posts: 2 Thaaaaaank yooooooou! Top swort Post subject: Re: HTTP POST with binary filePosted: Wed Nov 07, 2012 11:17 am Joined: Mon May 31, 2010 5:35 am Posts: 2217 Location: Netherlands frankieman wrote:New Real Studio user here. Please be nice! Question: Has anyone successfully done a HTTP POST with a binary file? Even more specifically: has anyone done it with Parse.com? I've been banging my head trying to find any projects, examples, anything on doing a HTTP POST with a binary file. I've also tried unsuccessfully using CURLMBS (and would purchase it -- and this Real Studio demo -- if I could get it to do what I need to do). -- frankieman There should be a ParseSocket i've made on github for RealBasic. You can use it, and request functions. If requested on github then i will try to update. Others can help, if they want to help build the class. download here: https://github.com/sworteu/ParseSocket _________________ SWORT⢠- Windows Vista, Windows XP, Windows 7, Linux Mint 11 and Mac OSX Lion - REAL Studio Enterprise(latest) and WEB Edition(latest) - Plugins (MBS Complete, ToringoLib, Einhugur, VanHoek + Some open source plugins) For Dutch User Groups ask me to enter! Top swort Post subject: Re: HTTP POST with binary filePosted: Wed Nov 07, 2012 11:18 am Joined: Mon May 31, 2010 5:35 am Posts: 2217 Location: Netherlands simulanics wrote:I will post an example tomorrow morning. Matt, i can give you access to the ParseSocket to be collaborator. As sharonn0 is already helping. You can do the same. This way we can update classes easy and you can post them in your lib utility! _________________ SWORT⢠- Windows Vista, Windows XP, Windows 7, Linux Mint 11 and Mac OSX Lion - REAL Studio Enterprise(latest) and WEB Edition(latest) - Plugins (MBS Complete, ToringoLib, Einhugur, VanHoek + Some open source plugins) For Dutch User Groups ask me to enter! Top simulanics Post subject: Re: HTTP POST with binary filePosted: Wed Nov 07, 2012 12:07 pm Joined: Sun Aug 12, 2007 10:10 am Posts: 814 Location: Boiling Springs, SC I already have parsesocket inbox me and I'll be glad to help. correction....postsocket lol swort wrote:simulanics wrote:I will post an example tomorrow morning. Matt, i can give you access to the ParseSocket to be collaborator. As sharonn0 is already helping. You can do the same. This way we can update classes easy and you can post them in your lib utility! _________________ Matthew A. Combatti Real Studio 2012 r1.1 Visit Real Studio Developer's Spot! Systems: Windows XP/Windows Vista/Windows Server 2008 r2/Windows 7/Windows 8 Beta Mac OSX 10.5/Mac OSX 10.6/Mac OSX Server/Ubuntu/Debian/Suse/Red Hat/ Windows Server 2011/CentOS 5.4 /ReactOS/SimOS ~All REAL Compatible~ Last edited by simulanics on Wed Nov 07, 2012 12:18 pm, edited 1 time in total. Top simulanics Post subject: Re: HTTP POST with binary filePosted: Wed Nov 07, 2012 12:15 pm Joined: Sun Aug 12, 2007 10:10 am Posts: 814 Location: Boiling Springs, SC Here is the demo as requested of how to post to a web application. You can also post to any other web language such as python, php, perl, etc. I know you requested how to post binary..but text works the same as well... Download: http://www.realstudiodevspot.com/demos/WEPostBinary.zip Included: **A desktop version 'select a file' and "upload" client **A web edition acceptor for the posted file You can develop the naming scheme yourself...in the web edition example it saves a png file you select with the 'desktop posting utility' to the web edition application directory called "test.png"...you can change this to whatever **If you would like the full un-encrypted source to the desktop posting utility please inbox me. Otherwise: See "Post Binary Data to HttpSocket" found in the Real Studio Developer's Library to see how to create a method to multipart post to a socket. _________________ Matthew A. Combatti Real Studio 2012 r1.1 Visit Real Studio Developer's Spot! Systems: Windows XP/Windows Vista/Windows Server 2008 r2/Windows 7/Windows 8 Beta Mac OSX 10.5/Mac OSX 10.6/Mac OSX Server/Ubuntu/Debian/Suse/Red Hat/ Windows Server 2011/CentOS 5.4 /ReactOS/SimOS ~All REAL Compatible~ Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 7 posts ]
-- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
