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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T02:38:29+00:00 2026-06-04T02:38:29+00:00

How to use ios 5 sdk’s asynchronous http get requests to handle redirected urls?

  • 0

How to use ios 5 sdk’s asynchronous http get requests to handle redirected urls?

I have found the knowledge in bits and pieces. All the solutions assume some important piece of info to be known to the user. This is very difficult to figure out for a person who who has just started coding ios that to beginning with ios5 sdk.

I know a lot of people might ask to go and read the doc, which somehow have the same issue but please, could someone explain the concept in simple terms…a working code along with the little detail what peice goes where?

Thanks for your time!

  • 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-06-04T02:38:31+00:00Added an answer on June 4, 2026 at 2:38 am

    AFNetworking provides a good foundation of code for dealing with network requests, and this page specifically has information regarding redirects. It doesn’t look like the changes proposed in that comment thread have been committed yet but in any case check it out and see if that helps.

    In short, kcharwood suggests subclassing the whichever operation you choose to use and overriding -(NSURLRequest *)connection:willSendRequest:redirectResponse: like so:

    - (NSURLRequest *)connection: (NSURLConnection *)inConnection
             willSendRequest: (NSURLRequest *)inRequest
            redirectResponse: (NSURLResponse *)inRedirectResponse
    {
        if (inRedirectResponse) {
           //Create your mutable request to return in the redirect scenario
        } else {
            return inRequest;
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a C2-DB9 serial cable from Redpark for use with an iOS application
I found CGPathCreateCopyByStrokingPath on iOS 5.0 quite convenient to use but it is available
The iOS and OS X Sdk have a very cool concept of toll-free bridging.
I have my current base sdk set to iOS 4.2. I have this method:
How to use this method with iOS sdk? How to send parameters? For example
I have an issue with the Facebook iOS SDK. Here is what happens: I
I am trying to implement the segmentUI found in the ios sdk in android.
I start writing a simple app to use FaceBook IOS SDK from GitHub. I
Please tell me which version of the iOS SDK i should use so that
Using AdMob in MonoTouch Projects with iOS SDK 4.2 We have a test project

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.