cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: posting with curl

From: sonali gadekar <sonaligadekar_at_yahoo.co.in>
Date: Tue, 8 May 2007 14:56:02 +0100 (BST)

Hi,
   
  I tried with that option but doesn't help
   
  curl --cookie cookies --cookie-jar cookies --location https://rhn.redhat.com/rhn/YourRhn.do --data "username=user&password=password&_flowId=legacy-login-flow&_eventId_submit=Log+In" https://www.redhat.com/wapps/sso/rhn/login.html

Daniel Stenberg <daniel_at_haxx.se> wrote:
  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.html
 			
---------------------------------
 Here’s a new way to find what you're looking for - Yahoo! Answers 
Received on 2007-05-08