cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: help with curl and https...

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 28 Feb 2007 10:52:11 +0100 (CET)

On Tue, 27 Feb 2007, Screaming Eagle wrote:

> curl -v --cookie-jar cookie --cookie cookie -A \
> "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:
> 1.8.0.10) Gecko/20070216 Firefox/1.5.0.10" \
> -k -d "username=someone&password=bangbang&login-type=pwd"
> https://somesecuresite.com

Most often you need to first get the front page or the actual page with the
login form, to get the initial session cookies set.

> Yet, it is not working. Does any one have any idea? Does the synthax seems
> right?

Use LiveHTTPHeaders and compare with --trace-ascii ouputs.

> By the way, this is a webseal server; I am not sure if curl is even going to
> work with it.

curl works with all http servers that are (mostly) standards compliant.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2007-02-28