0

How can I get the contents of a URL using base64 authentication (username:password) with the iPhone SDK

Passing the username and password in the URL doesn't work because the API states that the authentication is basic web authentication, using base64 encryption of "username:password"

I hope somebody can help me out with this one.

Thanks in advance!

4

2 に答える 2

0

わかりました、私はそれを理解することができました。ヘッダーに正しいAuthorization値を設定する必要があります。これにより、トリックが実行されます:D

于 2011-03-04T13:35:22.347 に答える
0

You do realize that since you are sending the password in base64, you might as well just send it in plain text, right? You should store anything you wouldn't want someone else to see in base64 due to it's very simple nature.

于 2011-03-04T13:39:13.183 に答える