RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

Curl login to web page

👤 Login to reply

Vit0_Corleone's Unix or Linux Image
Vit0_Corleone Vit0_Corleone is offline
Registered User
Join Date: Dec 2009
Last Activity: 30 June 2017, 2:36 PM EDT
Posts: 165
Thanks: 18
Thanked 4 Times in 4 Posts
Curl login to web page

Hello dears,
I am trying to log in the website using curl but no luck so far.
The web page Content-Type is : text/html;charset=ISO-8859-1

I try the following command using curl:

curl \
--header "Content-type: text/html" \
--request POST \
--data '{"user": "someusername", "password":somepassword}'

What happens is that it just dumps the web page source code. It even does not try to authenticate.

Thanks in advance.
Sponsored Links
👤 Login to reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to use cURL to download web page with autentification (form)? MarcelOrMittal UNIX for Beginners Questions & Answers 1 08-04-2016 11:15 AM
help pulling ${VARS} out of a web page user curl briandanielz Shell Programming and Scripting 1 08-08-2012 11:32 PM
Grabbin a html code from a page (Var = Curl) Ziden Shell Programming and Scripting 1 08-06-2011 12:03 AM
APACHE: Tie in Web Page login with server login WhotheWhat Security 1 11-26-2008 01:58 AM
APACHE: Tie in Web Page login with server login WhotheWhat Web Programming 2 11-19-2008 10:17 AM

All times are GMT -4. The time now is 12:53 AM.

Unix & Linux Forums Content Copyrightę1993-2018. All Rights Reserved.
Show Password

Not a Forum Member?
Forgot Password?