LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-23-2015, 09:37 AM   #1
zzyzxgal
LQ Newbie
 
Registered: Oct 2015
Posts: 9

Rep: Reputation: Disabled
cURL and asp authentication


I'm going to send some data to a web form that is accessed after authentication.

Here's the command I thought should work:

curl -c cookietemp --trace-ascii tracelog --ntlm -u <user>:<password> http://@192.168.1.11
0610:/Host/Path/login.aspx"

It didn't produce the cookietemp file

tracelog basically tells me that I'm not authorized to view the page due to credentials & also the ACL on the Web server.

I know my username & password are correct.

What might I be missing?
 
Old 10-23-2015, 10:18 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
What happens if you add the -v flag?

According to the man page you get no errors if -c doesn't produce a cookie for some reason and the only way to get feedback is with the -v.
 
Old 10-23-2015, 11:08 AM   #3
zzyzxgal
LQ Newbie
 
Registered: Oct 2015
Posts: 9

Original Poster
Rep: Reputation: Disabled
I did it with the -v option and it still provided no error message about why it didn't create the cookie. I'm thinking that might be because it doesn't get that far before it kicks out my ID?
 
Old 10-28-2015, 09:08 AM   #4
zzyzxgal
LQ Newbie
 
Registered: Oct 2015
Posts: 9

Original Poster
Rep: Reputation: Disabled
I thought maybe the problem is that the authentication page needs to be handled like a form so I attempted this with both the -F and the -d options using the form's field names

txtOperatorID
txtPassword
btnSubmit

That creates a cookie but doesn't contain the .ASPXAUTH cookie

Here is the result:

<html><head><title>Object moved</title></head><body>
<h2>Object moved to <a href="%2fSite%2fPath%2fLogin.aspx%3fAspxAutoDetectCookieSupport%3d1">here</a
>.</h2>
</body></html>


I hope this additional information will ring some bells for someone.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
curl and .asp authentication genderbender Programming 1 09-06-2010 08:25 AM
Curl command with POST method and Authentication pedropolian Linux - Networking 0 03-16-2009 10:44 AM
ASP and ASP .NET running on Apache? isra_mv Linux - Server 1 10-28-2007 05:39 PM
ASP? ASP for Perl? northwind blank Linux - Networking 3 02-04-2003 10:52 AM
httpd - asp or apache - asp vcheah Linux - General 2 01-18-2002 04:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration