Evan Weaver on 31 Aug 2007 23:26:31 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PhillyOnRails] Using Net::HTTP to make multipart file uploads

  • From: "Evan Weaver" <evan@cloudbur.st>
  • To: talk@phillyonrails.org
  • Subject: Re: [PhillyOnRails] Using Net::HTTP to make multipart file uploads
  • Date: Fri, 31 Aug 2007 19:26:19 -0400
  • Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=aLgcqpc0cC5i/KF80DmTLiBVK4slPKN36L/6719Y2S8JA4wYMJhuYZQX2DFNTbPi90o5SW3nrUHpbq3JbS9mv/CVr/vrDBVbQJ1/qPWy2bs9B4dqbAgEf6BYtRtWjf13EnrMHSSlPfIVULnYz3fE/plTvFkD2c+rn5AabiBDE4c=
  • List-archive: <http://lists.phillyonrails.org/pipermail/talk>
  • Reply-to: talk@phillyonrails.org
  • Sender: talk-bounces@phillyonrails.org

Net::Http is pretty weak.

Curb, a binding for libcurl, has not-terrible file uploads. Also,
RFuzz should be able to do it. I use a combination of open-uri, RFuzz,
and Curb for my form posting needs.

Evan


On 8/31/07, matthew. hawthorne <mhawthorne@gmail.com> wrote:
> On 8/31/07, Mat Schaffer <schapht@gmail.com> wrote:
> > I was just disgusted by this:
> >
> > http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/113774
> >
> > Which caused me to write this:
> >
> > http://tumblr.matschaffer.com/post/10293502
>
> That is quite ugly -- I had a similar feeling when I learned that
> Net::SMTP expected me to provide raw email messages as one big giant
> string.  But it's not so bad once you throw a method around it... I
> guess.
>
>
> > And consider becoming a python developer.
>
> You say that like it's a bad thing...
>
>
> > Is there really no graceful way to use Net::HTTP to make file
> > uploads?  Should I be bugging the facets people to include http in
> > their UploadUtils class?  Or maybe we just need a new 'phacets' gem? :-D
>
> I also tried looking into the ruby amazon s3 client (aws-s3) source
> code to see how they do uploads, but I got lost.
>
> Not sure if http://code.whytheluckystiff.net/parkplace/ includes any
> client code -- if so, that could be interesting.
>
> I could be missing something -- my Ruby skills are admittedly weak.
>
> later,
> matt
> _______________________________________________
> To unsubscribe or change your settings, visit:
> http://lists.phillyonrails.org/mailman/listinfo/talk
>


-- 
Evan Weaver
Cloudburst, LLC
_______________________________________________
To unsubscribe or change your settings, visit:
http://lists.phillyonrails.org/mailman/listinfo/talk