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

  • Home
  • SEARCH
  • 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 7033827
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:06:43+00:00 2026-05-28T01:06:43+00:00

i made iPad application, i want to fetch data from this url, http://ipad.idealake.com/stockquote.aspx?id=SBIN and

  • 0

i made iPad application, i want to fetch data from this url,

http://ipad.idealake.com/stockquote.aspx?id=SBIN

and i want to store this data into string,

so i written this, but it doesn’t take data into the string,

    NSURL *urlq=[NSURL URLWithString:str1];
    NSURLRequest *reqq=[NSURLRequest requestWithURL:urlq];
    [webViewq loadRequest:reqq];


mainstr=[[NSMutableString alloc] initWithContentsOfURL:urlq encoding:NSUTF32StringEncoding error:NULL];  

    NSLog(@"WHOLE STRING=%@",mainstr);

output of log is: WHOLE STRING=NULL

am i doing any mistake in this code ?

Thanks In Advance !!

  • 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-28T01:06:44+00:00Added an answer on May 28, 2026 at 1:06 am
    -(void)fire{
    
    NSString *URL = @"http://ipad.idealake.com/stockquote.aspx?id=SBIN";
        NSURLRequest *rq = [NSURLRequest requestWithURL:[NSURL URLWithString:URL]];
        conn1 = [[NSURLConnection alloc] initWithRequest:rq delegate:self];
        webData = [[NSMutableData data] retain];
    }
    
    
    -(void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response {
        [webData setLength: 0];
    }
    -(void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data {
        [webData appendData:data];
    }
    -(void)connection:(NSURLConnection *)connection didFailWithError:(NSError *)error {
        NSLog(@"ERROR with theConenction");
        [connection release];
        [webData release];
    }
    
    -(void)connectionDidFinishLoading:(NSURLConnection *)connection {
        NSString *theResult = [[NSString alloc] initWithBytes: [webData mutableBytes] length:[webData length] encoding:NSUTF8StringEncoding];
        NSLog(@"xml : %@",theResult);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have made an application for IPad in objective C. In this I am
i have made iPhone Application and i want to make it iPad Compatible without
I have made my application universal for iPhone and iPad (window-based application; universal) from
I am currently developing an iPad application. I want this to communicate with a
I made an iPad application in which I want to support orientation, so I've
I made iPad application in which, I want to insert record into database table,
I've made a universal iPhone/iPad app (transitioned from iPhone only), but in a future
Application is made in Interface builder. Seperate storyboards for iPhone and iPad. Project runs
I want to submit an iPad only app through iTunes. I have already made
I made an application for iPhone and now I want to make it universal

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.