Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > "Faking" HTTP Auth with PHP

"Faking" HTTP Auth with PHP
Thread Tools
Grizzled Veteran
Join Date: Jun 2001
Status: Offline
Reply With Quote
Nov 12, 2004, 04:15 PM
 
I'd like to mess around with PHP and del.icio.us, but I can't seem to figure out how to do HTTP authenticaiton with PHP. I need to send a) the request for the page and b) the http authentication info. I've found out how to do the authentication header, but not the request itself.

header("Authorization: Basic base64string");

where base64string is my del.icio.us username and password base64 encoded in the format usernameassword. My question is...how do I go about sending the request for the page right before that?
     
Grizzled Veteran
Join Date: Jun 2001
Status: Offline
Reply With Quote
Nov 12, 2004, 08:13 PM
 
That was stupid of me.

$alltags = file("http://username:password@del.icio.us/api/tags/get?");

K.I.S.S. !!
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:20 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2