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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T08:18:12+00:00 2026-06-02T08:18:12+00:00

How to access the (POST)data sent with the request from the requestFailed/requestFinished function. –

  • 0

How to access the (POST)data sent with the request from the requestFailed/requestFinished function.

-  (void) abc {  
    NSString *postString = @"john";  
    NSURL *url = [NSURL URLWithString:@"http://abc.com"];  
    ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:url];  
    [request setPostValue:postString forKey:@"name"];  
    [request setDelegate:self];  
    [request startAsynchronus];  
}  
- (void) requestFinished:(ASIHTTPRequest *)request  
{   
    // Question is whether the request holds the sent post values.  
    // If it holds. how can we access them.  
    // i tried using [request valueForKey:@"name"];  
    // but it won't work.  
}  
  • 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-02T08:18:14+00:00Added an answer on June 2, 2026 at 8:18 am

    Handling success and failure for multiple requests in delegate methods

    If you need to handle success and failure on many different types of
    request, you have several options:

    If your requests are all of the same broad type, but you want to
    distinguish between them, you can set the userInfo NSDictionary
    property of each request with your own custom data that you can read
    in your finished / failed delegate methods. For simpler cases, you can
    set the request’s tag property instead. Both of these properties are
    for your own use, and are not sent to the server.

    If you need to handle success and failure in a completely different way for each
    request, set a different setDidFinishSelector / setDidFailSelector for
    each request For more complex situations, or where you want to parse
    the response in the background, create a minimal subclass of
    ASIHTTPRequest for each type of request, and override requestFinished:
    and failWithError:.

    That provided me a good solution to handle different requests.

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

Sidebar

Related Questions

How can I access my request.params post data from my Mako template with Pylons?
I need to access data from a webpage using several different post requests. For
I'm trying to access the post target action in a jquery function. example: <form
This is a continuation of the post How does one access a method from
i will be sending a POST request to login.php on my server from an
I am sending a POST request to a web-service which returns data in XML
If I'm being sent an HTTP Post where the body of the http request
I am doing a one-way data transfer app from MS Access to a Rails
I have a code that sends POST data to a PHP website. Code: request
I can't seem to figure out how to access POST data using WSGI. I

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.