Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6770633
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T15:20:08+00:00 2026-05-26T15:20:08+00:00

I want to fetch data from this URL: http://webservices.ns.nl/ns-api-stations . This URL requires a

  • 0

I want to fetch data from this URL: http://webservices.ns.nl/ns-api-stations. This URL requires a login. How to put this login in my code? This code is what I am using now.

-(void)fetchStationData {
//Method for the fetching of the data

//First lets check wheater there is an internet connection and if the host is reachable
if(internetActive) {

    //Internet is active

    //Init the parser
    parser = [[RSSParser alloc] init];

    //Set he parser context
    parser.context = context;

    //The array to het the data from 
    NSURL *url = [NSURL URLWithString:@"http://webservices.ns.nl/ns-api-stations"];

    //The XML elements to fetch
    NSArray *elements = [[NSArray alloc] initWithObjects:@"naam",nil];

    //The actual fetchin
    [parser fetchStationItemsForUrl:url forElements:elements];

    //Save the context ?
    [context save:nil];

    //Clean up
    [elements release]; 

}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T15:20:08+00:00Added an answer on May 26, 2026 at 3:20 pm

    The server which you try to access and fetch some data is requiring a some kind of authentication to allow it.. So before you try to make a get request you need the perform a authentication. So you need to know which kind of authentication method(for example Digest Auth) they’re using and also you need a username and password..

    Also you need to use HTTPRequest library. I suggest you to use ASIHTTPRequest, It’s really simple.. You can also perform authentication with asihtttprequest library before make a request from a server.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i made iPad application, i want to fetch data from this url, http://ipad.idealake.com/stockquote.aspx?id=SBIN and
In asp.net(C#) i want to fetch data from a database using a stored procedure
i Want to fetch this data using json decode. Please Help.. So far i
In C#.NET, I want to fetch data from an URL and save it to
I want write a simple query which will fetch data from a table (which
I have a mySQL database from where I fetch some data via PHP. This
I am using php 5.2 and I am fetching data from url using file_get_contents
I want to fetch data from the webpage, that contains some json data. The
The following code fetch all data (by clicking a.info link) from a php file
I want to fetch data from my MySQL and echo it out only if

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.