cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: loging in with -F

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 3 Jun 2002 23:08:53 +0200 (MET DST)

On Mon, 3 Jun 2002, Matomira, 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?

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

> With the -d option, I manage to get through. Any ideas?

Why not use -d if that works?

-- 
    Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/
_______________________________________________________________
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-03