Sorry for the late reply.
So basicly what I want to do is upload files to and from a restful api using multipart/form data that are not in sketchup format.
ie, export obj file > upload to server > delete obj file
or
download stl file > import to sketchup > delete stl file
after giving up on net stuff through ruby which all seemed to crash sketchup I started looking into accomplishing this through the web dialog with ajax. While it works for communicating with the api in other ways and solves a lot of my problems. It is still not possible to upload or download a file with out the file dialog (and for good reason) but I want something more seamless. So far the closest thing I have found is
https://github.com/danawoodman/google-sketchup-file-downloader
but it isn't working. Thanks for your help, I will keep at it and appreciate any more help
Thanks!