W3C home > Mailing lists > Public > www-validator@w3.org > October 2001

Re: POST from Java; was: Re: [www-validator] <none>

From: Paul Avijit <paulavijit@yahoo.com>
Date: Mon, 1 Oct 2001 06:20:28 -0400 (EDT)
Message-ID: <20011001102014.45706.qmail@web12504.mail.yahoo.com>
To: "Ushakov, Sergey N" <ushakov@int.com.ru>, www-validator@w3.org
Hi,

Thanks a ton for having sent the info about
HttpClient. But I have a query about it.

Using HttpClient I want to simulate the submission of
the following form from a java application:

<form method="post" enctype="multipart/form-data"
action="http://validator.w3.org/check">

<input type="file" name="uploaded_file" size="50" />
<input type="submit" value="Validate this document" />

</form>

I am not able to figure out a way to post the file to
the script corresponding to the name "uploaded_file"
as in the above code. HttpClient has methods to post
simple string type form data but I could not figure
out a way to post a file as requried in the above
form.

Thanks & regards.

Paul.

--- "Ushakov, Sergey N" <ushakov@int.com.ru> wrote:
> You can try HTTPClient from
> http://www.innovation.ch/java/HTTPClient/
> 
> Regards,
> Sergey Ushakov
> 
> 
> ----- Original Message ----- 
> From: "Paul Avijit" <paulavijit@yahoo.com>
> To: <www-validator@w3.org>
> Sent: Sunday, September 30, 2001 6:47 AM
> Subject: [www-validator] <none>
> 
> 
> > hi,
> > 
> > i was trying to write a java application which
> will do
> > exactly the same thing as the form used to
> validate a
> > HTML file.
> > 
> > Can anyone please tell me as to how to POST the
> html
> > file to be validated to
> http://validator.w3.org/check
> > from a java application.
> > 
> > Thanks.
> > 
> > Paul.
> > 
> > =====
> > Paul Avijit
> > Telephone: +44 (0) 1603 498 760(R)
> > Mobile   : +44 (0) 7810 444 495
> > Home Page: http://paulavijit.com
> > 
> > __________________________________________________
> > Do You Yahoo!?
> > Listen to your Yahoo! Mail messages from any
> phone.
> > http://phone.yahoo.com
> 


=====
Paul Avijit
Telephone: +44 (0) 1603 498 760(R)
Mobile   : +44 (0) 7810 444 495
Home Page: http://paulavijit.com

__________________________________________________
Do You Yahoo!?
Listen to your Yahoo! Mail messages from any phone.
http://phone.yahoo.com
Received on Monday, 1 October 2001 06:58:24 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:13:59 GMT