Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Net:HTTP post question
Mikel Lindsaar
5/12/2008 2:07:00 PM
Heya all,
I am using Net::HTTP to do post actions to a server, but I have to
include a file in the post action.
I found this:
http://www.realityforge.org/articles/2006/03/02/upload-a-file-via-post-wit...
Is that really the only way to add a file to a POST action using Net::HTTP?
What I want is the equiv of adding a file in a file select box in a
form using post.
Mikel
2 Answers
Martin Boese
5/12/2008 4:02:00 PM
0
I just read that WWW::Mechanize has an interface for fileuploads, see
EXAMPLES.txt in the API doc:
http://mechanize.rubyforge.org/...
Martin
On Monday 12 May 2008 15:06:43 Mikel Lindsaar wrote:
> Heya all,
>
> I am using Net::HTTP to do post actions to a server, but I have to
> include a file in the post action.
>
> I found this:
>
>
http://www.realityforge.org/articles/2006/03/02/upload-a-file-via...
>-net-http
>
> Is that really the only way to add a file to a POST action using Net::HTTP?
>
> What I want is the equiv of adding a file in a file select box in a
> form using post.
>
>
> Mikel
Mikel Lindsaar
5/13/2008 3:29:00 AM
0
Looks perfect, thanks :)
Mikel
On 5/13/08, Martin Boese <boesemar@gmx.de> wrote:
>
> I just read that WWW::Mechanize has an interface for fileuploads, see
> EXAMPLES.txt in the API doc:
>
>
http://mechanize.rubyforge.org/...
>
> Martin
>
>
>
> On Monday 12 May 2008 15:06:43 Mikel Lindsaar wrote:
> > Heya all,
> >
> > I am using Net::HTTP to do post actions to a server, but I have to
> > include a file in the post action.
> >
> > I found this:
> >
> >
>
http://www.realityforge.org/articles/2006/03/02/upload-a-file-via...
> >-net-http
> >
> > Is that really the only way to add a file to a POST action using
> Net::HTTP?
> >
> > What I want is the equiv of adding a file in a file select box in a
> > form using post.
> >
> >
> > Mikel
>
>
>
>
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Net:HTTP post question
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password