curl-users
posting with curl
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 8 May 2007 14:53:52 +0200 (CEST)
Date: Tue, 8 May 2007 14:53:52 +0200 (CEST)
On Tue, 8 May 2007, sonali gadekar wrote:
> curl --cookie cookies cookie-jar cookies --insecure
> --data="redirect=https%3A%2F%2Frhn.redhat.com%2Frhn%2FYourRhn.do&username=user&password=password&_flowId=legacy-login-flow&_eventId_submit=Log
> In" https://www.redhat.com/wapps/sso/rhn/login.html
1) cookie-jar should probably be --cookie-jar
2) you probably want --location as well
3) the space in the posted data seems wrong since URL encoding doesn't allow
that
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2007-05-08