cURL / Mailing Lists / curl-users / Single Mail

curl-users

form authentication using curl

From: Irfan Pasha <irfan17sat_at_gmail.com>
Date: Fri, 24 Jan 2014 16:39:05 +0530

Hi,

I am trying to do a form authentication using curl command line but i see
HTTP/1.1 302 Found error. The page seems to be redirected, hence i gave -L
parameter to my curl request. Still i see 302 error.

Here is my request

curl --data "j_username=username&j_password=password&submit=submit" -X POST
-L http://myservice:1111/app/login.html

Do i need to add anything specific for redirected pages of form login.

-- 
irfan..........................

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-01-24