cURL / Mailing Lists / curl-users / Single Mail


RE: loging in with -F

From: Matomira, Fernando <>
Date: Tue, 4 Jun 2002 10:16:09 +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
> > 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
> sets. You can't pick a type at your own discretion. How does the <form>
> [blurb] </form> tag stuff look?

<form autocomplete="off"
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=""
    <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"
            <input type="image" border="0" value="Go" name="Go"
src="/icons/DSWebRouter.Router.go2.gif" align="absmiddle">
    <tr><td height="15"></td></tr>

> 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

Thanks a lot,


Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas --
Received on 2002-06-04