cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: loging in with -F

From: Fernando D. Mato Mira <matomira_at_acm.org>
Date: Tue, 04 Jun 2002 10:12:27 +0200

Daniel Stenberg wrote:

> On Mon, 3 Jun 2002, Mato Mira, Fernando wrote:
>
> > I am trying to send a document to a password-protected servlet, and I am
> > trying to use the -F option
> > without success: I just get the login page (and I see a 100 Continue
> > response in the headers - and a 200 OK, too).
>
> > I want to use the -F option because URL encoding only supports the latin
> > character set and, worse, I think newlines won't work.
>
> You should probably make a post that fulfills the requirement the HTML form
> sets. You can't pick a type at your own discretion. How does the <form>
> [blurb] </form> tag stuff look?

<form autocomplete="off"
action="http://www.privatestar.ch/servlet/PrivateDB.UploadDocumentsServlet"
method="POST" name="loginform">
 <table border="0" cellspacing="0" cellpadding="0" width="100%">
    <tr><td height="10" class="formHeader"><b>User Name</b></td></tr>
    <tr><td><input type="Text" name="UGA_UserName" maxlength="30" value=""
size="15"></td></tr>
    <tr><td height="12"></td></tr>
    <tr><td class="formHeader"><b>Password</b></td></tr>
    <tr><td><input type="PASSWORD" name="UGA_Password" maxlength="30" value=""
size="15">&nbsp;
            <input type="image" border="0" value="Go" name="Go"
src="/icons/DSWebRouter.Router.go2.gif" align="absmiddle">
            </td></tr>
    <tr><td height="15"></td></tr>
   </table>
</form>

>
> Curl doesn't encode the input, neither with -F nor with -d.

With -d I'll URL encode, as required (for testing untill I get -F working).

>
> > With the -d option, I manage to get through. Any ideas?
>
> Why not use -d if that works?

Even if newlines were preserved, it won't work for Asian customers, for
example.

Thanks a lot,

--
Fernando D. Mato Mira                         matomira_at_acm.org
Thomson Corporation Switzerland AG
_______________________________________________________________
Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
Received on 2002-06-04