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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.