PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.lang.ruby > Net:HTTP post question
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Net:HTTP post question

Réponse
 
LinkBack Outils de la discussion
Vieux 12/05/2008, 15h06   #1
Mikel Lindsaar
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Net:HTTP post question

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...-with-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

  Réponse avec citation
Vieux 12/05/2008, 17h01   #2
Martin Boese
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Net:HTTP post question


I just read that WWW::Mechanize has an interface for fileuploads, see
EXAMPLES.txt in the API doc:

http://mechanize.rubyforge.org/mechanize/

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...-via-post-with
>-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




  Réponse avec citation
Vieux 13/05/2008, 04h29   #3
Mikel Lindsaar
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Net:HTTP post question

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/mechanize/
>
> 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...-via-post-with
> >-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

>
>
>
>


  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 01h56.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,08786 seconds with 11 queries