Jump to content


Photo

[SOLVED] Curl And Http Digest Authentication


  • Please log in to reply
1 reply to this topic

#1 gargoylemusic

gargoylemusic
  • Members
  • PipPip
  • Member
  • 12 posts

Posted 28 June 2006 - 11:21 PM

I'm having a little bit of trouble using curl (libcurl) for http digest authentication. I can paste the PHP libcurl equivalent if you would like, but right now I'm simply trying to get curl doing what I want it to.

Basically, I want to get livejournal's protected RSS feeds. For example, I'd like to get:

[a href=\"http://gargoylemusic.livejournal.com/data/rss?auth=digest\" target=\"_blank\"]http://gargoylemusic.livejournal.com/data/rss?auth=digest[/a]

In the web browser, I'm prompted for a username and passwd. I tried using curl (via the command line, at first) as follows:

curl --digest -u username:passwd "http://gargoylemusic.livejournal.com/data/rss?auth=digest"

I'm given an authentication failure. Do I have to do something else to send all of the proper credentials to LJ? What exactly am I missing? (Again, if it would be easier for me to rewrite this as a PHP script, I can... right now I'm just trying to get it to 'work')

Am I simply not understanding something about http digest - am I not passing all of the information I need for curl to authenticate me?

Any help would be appreciated.

#2 gargoylemusic

gargoylemusic
  • Members
  • PipPip
  • Member
  • 12 posts

Posted 28 June 2006 - 11:38 PM

Ah, I have figured out what the problem was. I was using (on a school linux server) curl version 7.10.6... buggy, from 3 years ago. (My apologies...)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users