gargoylemusic Posted June 28, 2006 Share Posted June 28, 2006 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 https://forums.phpfreaks.com/topic/13162-solved-curl-and-http-digest-authentication/ Share on other sites More sharing options...
gargoylemusic Posted June 28, 2006 Author Share Posted June 28, 2006 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...) Link to comment https://forums.phpfreaks.com/topic/13162-solved-curl-and-http-digest-authentication/#findComment-50615 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.