开发者

TouchJSON with basic HTTP authentication

开发者 https://www.devze.com 2023-01-20 06:52 出处:网络
I was wondering if anyone has the TouchJSON framework working in conjunction with basic apache HTTP authentication. Essentially the directory of the RESTful webservice that I am calling is secured wit

I was wondering if anyone has the TouchJSON framework working in conjunction with basic apache HTTP authentication. Essentially the directory of the RESTful webservice that I am calling is secured with basic http authentication. My calls are obviously all returning null now. Has any开发者_开发技巧one managed to get this working? I could embed the username:password in the URL like https://username:password@www.somewhere.com/webservices/ws.php but for obvious reasons, that is not desired.

Any help would be appreciated.

Thanks! Kurtis


TouchJSON does not handle any transfer of data via http, https or any other protocol. Itis merely a parser for converting data between JSON and NSDictionary formats. So it doesn't really matter to TouchJSON how the data exchanged.

Instead you will need to handle the authorization in your data transfer code.

0

精彩评论

暂无评论...
验证码 换一张
取 消