web login using curl

From thelinuxwiki
Jump to: navigation, search

get correct login url

run lynx against random url, yahoo.com to capture the redirect url from a redirection sent by blocking device


web login with curl

curl --insecure -c /home/johndoe/.curl_cookies.txt -d "username=johndoe&password=abc123" http://hotspot.gtel.com.mx/login? |grep "If nothing happens"

where "if nothing happens" is a positive indication from the successful login page

hotspot vendor: https://www.wifi-soft.com/

hotspot vendor hosted login url: https://www.wifi-soft.com/portal/bbg/lomeli/index?location=riupacifico