Jump to content


This topic is now archived and is closed to further replies.


[SOLVED] Curl And Http Digest Authentication

Recommended Posts

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:

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

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.

Share this post

Link to post
Share on other sites
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...)

Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.