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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T00:49:46+00:00 2026-05-30T00:49:46+00:00

I am running into issues using ASIFormDataRequest . The request seems to be made

  • 0

I am running into issues using ASIFormDataRequest. The request seems to be made but when I try to access the request once it has completed I get an EXC_BAD_ACCESS error. After looking around I can see no issue with what I’m doing hence me turning here. Can anyone spot what I am doing wrong?

I got the basics of the code here.

- (void)viewDidLoad
{
    /* Stuff here */
    NSURL *url = [NSURL URLWithString:@"http://www.mysite.com/login"];
    ASIFormDataRequest *request1 = [ASIFormDataRequest requestWithURL:url];
    [request1 setPostValue:@"email@email.com" forKey:@"email"];
    [request1 setPostValue:@"pass123" forKey:@"password"];
    [request1 setDelegate:self];
    [request1 startAsynchronous];
}

- (void)requestFinished:(ASIHTTPRequest *)thisRequest
{    
    NSLog(@"Request FInished: %@", thisRequest.responseStatusCode); //crashes here

    if (thisRequest.responseStatusCode == 403){
        NSLog(@"403 Not authorised");
    }
    if (thisRequest.responseStatusCode == 200)
    {
        NSLog(@"Data: %@", thisRequest.responseString);
    }
}
  • 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-30T00:49:48+00:00Added an answer on May 30, 2026 at 12:49 am

    The issue isn’t the request being bad, its that you’re trying to print an int as an object.
    Change this:

    NSLog(@"Request FInished: %@", thisRequest.responseStatusCode);
    

    to this

    NSLog(@"Request FInished: %d", thisRequest.responseStatusCode);
    

    or
    NSLog(@"Request FInished: %@", thisRequest); (if you want to print the full request description)

    You’re effectively trying to say “print the object at address 0xresponseStatusCode” which isn’t a valid object.

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

Sidebar

Related Questions

So I am trying to connect using SoapClient but am running into issues. $this->client
I'm currently running into some issues resizing images using GD. Everything works fine until
I've been using RhinoMocks lately but I keep running into an issue. If I
I am using the latest WPF Toolkit but am running into a height issue
I am running into issues using the Serial Port component available in .net 3.5
I'm playing around with LinqToSQL using an existing multi-lingual database, but I'm running into
I'm trying to build a website using object-oriented functionality, and running into some issues.
I'm running into issues with my project. When running in Netbeans it seems to
I'm trying to learn web.py and I'm running into issues. I'm using Mac OSX
I'm currently using Entity Framework and am running into this issue: The relationship between

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.