Jump to content

[SOLVED] Curl And Http Digest Authentication


gargoylemusic

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.

Archived

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

×
×
  • Create New...

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.