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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T09:44:03+00:00 2026-05-27T09:44:03+00:00

I have created an app with http and I am using asihttprequest . The

  • 0

I have created an app with http and I am using asihttprequest. The app only seems to work in console. The app closes without errors in the console. Did using asihttprequest affect my app?

is it ok that I use it or must I switch to something else?

i have a simple login application. Everytime I enter my username and password nothing is changes, but in the console I think its response is ok.

-(IBAction)btnClicked:(id)sender
{
    ASIFormDataRequest *request = [ASIFormDataRequest requestWithURL:[NSURL URLWithString:@"http://192.168.18.8/apisample2/friendb.php?un=jackie&pd=jackie123&gd=f&ag=23&st=single&lf=kaloy&fm=jsn"]];

    [request setPostValue:[self.usernameField text] forKey:@"u"];
    [request setPostValue:[self.passwordField text] forKey:@"pw"];
    [request setDelegate:self];
    [request startAsynchronous];
}
-(void)requestFailed:(ASIHTTPRequest *)request
{
    NSLog(@"Request failed: %@",[request error]);
}
-(void)requestFinished:(ASIHTTPRequest *)request
{
    NSLog(@"Submitted form successfully");
    NSLog(@"Response was:");
    NSLog(@"%@",[[request responseString]JSONValue]);
}
  • 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-27T09:44:04+00:00Added an answer on May 27, 2026 at 9:44 am

    In the code shown you don’t do anything to prevent your ASIFormDataRequest object being destroyed before your asynchronous request has completed. If you need it to stick around you should retain it. Better yet, make ASIFormDataRequest request a property of whatever Class this code is extracted from.

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

Sidebar

Related Questions

So, I have created a django app here: http://fpaste.org/bkFf/ without using django-admin. I want
I have created a console app referencing http://www.antlr.org/download/CSharp using System; using Antlr.StringTemplate; using Antlr.StringTemplate.Language;
I have created an app for weather reports by using this http://www.google.com/ig/api?weather=paris . It
I have created some simple app in Java, and 'deployed' it using Java Web
I have created a QDialog based app using Qt Creator and all is well
I have created an iOS 4.0 app with a Settings bundle. I am using
I have created a django application. Using this app users can be created or
I have created a google-app-engine java project in Eclipse using Google's Eclipse plugin. My
I have created a UITableView in an app, using the basis of a tutorial
I have created an App Widget for Android 1.5. It uses a TextView to

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.