Results 1 to 1 of 1

Thread: Any curl experts? Having trouble using curl with aspx

  1. #1
    Join Date
    Dec 2005
    Beans
    474

    Any curl experts? Having trouble using curl with aspx

    Trying to use curl to automate some form-filling tasks on phonepower.com's website, which is all .aspx files. This is how I'm trying to log in:

    Code:
    curl -c ~/Desktop/cookies.txt -d "ctl00$Account_ContentPlaceHolder$MyAccountLogin$UserName=MYUSERNAME&ctl00$Account_ContentPlaceHolder$MyAccountLogin$Password=MYPASSWORD&ctl00$Account_ContentPlaceHolder$MyAccountLogin$LoginButton=Login" https://secure.phonepower.com/Account/login.aspx
    This sets a cookie, but I can see from the returned html that the login was actually not successful, and subsequent curl commands using that cookie are also not successful and redirect to a login page. I'm not experienced with curl. Is there anything obvious wrong with what I'm doing here?
    Last edited by dwasifar; April 13th, 2010 at 12:46 AM.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •