I have JSON on server, suppose my URL is
https://abc.companyname.com/posts/list/10
When I paste that URL in browse, it asks me username and password. As I enter these credentials, it returns me some data in JSON Format like below.
[{"id":"5","picture":"myimage.jpg","name":"Usman Zafar","type":"textonly","message":"Woo this is demo and it looks good thanks adeco","image":null,"video_id":null,"datecreated":"2013-10-17 10:14:02","totalLikes":0,"totalComments":0,"commentsData":null},
{"id":"6","picture":"default.jpg","name":"Usman Zafar","type":"textonly","message":"Hello this is the demo of another post but no image","image":null,"video_id":null,"datecreated":"2013-10-17 10:31:04","totalLikes":0,"totalComments":0,"commentsData":null},
{"id":"7","picture":"default.jpg","name":"Usman Zafar","type":"textonly","message":"Hello this is the demo of another post but no image","image":null,"video_id":null,"datecreated":"2013-10-17 10:31:24","totalLikes":0,"totalComments":0,"commentsData":null},
{"id":"11","picture":"myimage_9.jpg","message":"Regukar Text comments no.772"}]}]
My Question is
How to create NSURLConnection with authentication (username+password) in iPhone Programming?
If any other data is required regarding question, let me know via comments.
Thanks