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 6783307
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:50:53+00:00 2026-05-26T16:50:53+00:00

i am sending an object to this adrees : https://sandbox.itunes.apple.com/verifyReceipt with NSUrlconnection and i

  • 0

i am sending an object to this adrees : https://sandbox.itunes.apple.com/verifyReceipt

with NSUrlconnection
and i am trying to read it with this delegate method :

- (void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response
like this :

NSlog(@"%@",response);
i am getting this code :

<NSHTTPURLResponse: 0x7d2c6c0>
i need to get a string somehow.
how can i read it?

  • 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-26T16:50:53+00:00Added an answer on May 26, 2026 at 4:50 pm

    I wrote this answer to another question, but I think it will help you. Have a look in particular at the methods

    -(void) connection:(NSURLConnection *)connection didReceiveData:(NSData *)data

    and

    -(void) connectionDidFinishLoading:(NSURLConnection *)connection


    -(void) requestPage
    {
        NSString *urlString = @"http://the.page.you.want.com";
        NSURL *url = [NSURL URLWithString:urlString];
    
        NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url cachePolicy:NSURLCacheStorageAllowed timeoutInterval:20.0f];
    
    
        responseData = [[NSMutableData alloc] init];
        connection = [[NSURLConnection connectionWithRequest:request delegate:self] retain];
        delegate = target;
    }
    
    
    -(void) connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response
    {   
        if ([response isKindOfClass:[NSHTTPURLResponse class]])
        {
            NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse*) response; 
            //If you need the response, you can use it here
        }
    }
    
    -(void) connection:(NSURLConnection *)connection didReceiveData:(NSData *)data
    {
        [responseData appendData:data];
    }
    
    -(void) connection:(NSURLConnection *)connection didFailWithError:(NSError *)error
    {
        [responseData release];
        [connection release];
    }
    
    -(void) connectionDidFinishLoading:(NSURLConnection *)connection
    {
        if (connection == adCheckConnection)
        {
            NSString *responseString = [[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding];
    
            //You've got all the data now
            //Do something with your response string
    
    
            [responseString release];
        }
    
        [responseData release];
        [connection release];
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am sending password text to the http service request object.like <request><password>pass.text</password></request> now this
I am trying to receive a json object back from php after sending data
I read that when sending an object to the function/another object, not the actual
I am using LINQ and sending a linq object to the view and trying
I'm getting an NSObjectInaccessibleException when sending NSManagedObject as object with NSNotification. The notification is
I'm having trouble sending out a simple HTTP request using Actionscript 3's Socket() object.
In Objective-C I see [object retain]; What does sending a retain message to an
When sending data over HTTPS, I know the content is encrypted, however I hear
I am sending an object that i generated within a class from the server
I am sending an object through a webservice with readonly methods. I am using

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.