curl-users
Re: posting with curl
Date: Wed, 9 May 2007 08:49:45 +0100 (BST)
Hi,
I matched the headers and cookies with browser and they are exactly matching. And after executing curl the cookies get saved correctly which means that login is successful, but when I am trying to log in to another page using same cookies.. its failing.
How can I make sure that cookies are valid or where I am going wrong.
Daniel Stenberg <daniel_at_haxx.se> wrote:
On Tue, 8 May 2007, sonali gadekar wrote:
> 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
--location doesn't take any extra arguments. This command line thus features
two URLs to which curl will POST to, and I doubt you intended that.
--trace-ascii and LiveHTTPHeaders are two good tools to use as well.
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.html --------------------------------- Office firewalls, cyber cafes, college labs, don't allow you to download CHAT? Here's a solution!Received on 2007-05-09