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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:50:54+00:00 2026-05-27T01:50:54+00:00

I’m a COMPLETE DUMMY in ASIHTTPRequest. I have just downloaded the library and added

  • 0

I’m a COMPLETE DUMMY in ASIHTTPRequest. I have just downloaded the library and added it to my project and now i’m trying to understand basics of working with it. I’ve found some pretty good example here

this little tutorial is about uploading images to a server. I tried it and things seem to work (but i’m confused with NSString returned by [request responseString], it returned HTML code of a whole web page ) but i would like to know how to download images (or anything uploaded) back from the server. After searching a bit i found this and it gave me no answers but more questions only, cause it’s quite unclear for me.
Let me enumurate my questions:

1) Could you please provide me with a little piece of code showing how to download data (no matter what kind of data: images,strings,numbers etc) from a server?

2)Should i know php code of the server side in order to work with a server?

3)If yes – how do i know php code of the server side?

4)How important is it if a request is proccessed by a php script or by any different means?

5)What is the role of responseString? Is it ok that it returned me a huge HTML code?

6)The main question. Is there a good tutorial for ASIHTTPRequest? Something like “ASIHTTPRequest for dummies”? I found official documentation here but it explains the stuff really poorly and i just can’t find any other tutorials.

Any help is desperately needed.

  • 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-27T01:50:55+00:00Added an answer on May 27, 2026 at 1:50 am

    1) Could you please provide me with a little piece of code showing how to download data (no matter what kind of data: images,strings,numbers etc) from a server?

    here you can find a very basic POST example:

    NSURL *url = [NSURL URLWithString:@"http://localhost/webroot/index.php/test/signUp"];
    
    ASIFormDataRequest *request = [ASIFormDataRequest requestWithURL:url];
    [request addPostValue:@"Raul" forKey:@"name"];
    [request addPostValue:@"Hello World" forKey:@"message"];
    
    [request setCompletionBlock:^{
        NSString *responseString = [request responseString];
        NSLog(@"Response: %@", responseString);
    }];
    [request setFailedBlock:^{
        NSError *error = [request error];
        NSLog(@"Error: %@", error.localizedDescription);
    }];
    
    [request startAsynchronous];
    

    it uses blocks, so that wverything is nicely packed together in one function and you don’t have to deal with delegates and the rest. (source)

    If you just want to GET a page, you can use:

    NSURL *url = [NSURL URLWithString:@"http://allseeing-i.com"];
    ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:url];
    [request setCompletionBlock:^{
        NSString *responseString = [request responseString];
        NSLog(@"Response: %@", responseString);
    }];
    [request setFailedBlock:^{
        NSError *error = [request error];
        NSLog(@"Error: %@", error.localizedDescription);
    }];
    

    [request startAsynchronous];

    2)Should i know php code of the server side in order to work with a server?

    absolutely not necessary.

    3)If yes – how do i know php code of the server side?

    N.A.

    4)How important is it if a request is proccessed by a php script or by any different means?

    the language the server is written in is not relevant either.

    5)What is the role of responseString? Is it ok that it returned me a huge HTML code?

    responseString contains all the data that the server sent back to you as an NSString. It can be huge…

    6)The main question. Is there a good tutorial for ASIHTTPRequest? Something like “ASIHTTPRequest for dummies”? I found official documentation here click but it explains the stuff really poorly and i just can’t find any other tutorials.

    I don’t know of a tutorial “for dummies” like you say; you should try and follow the docs on the site; they may appear complex, but are not really.

    On another note, you probably already know it: development of ASIHTTP has been ceased. If you are just starting learning about it, you might better think of considering an alternative. Look at the linked page for some alternatives.

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

Sidebar

Related Questions

I have just tried to save a simple *.rtf file with some websites and
I am trying to understand how to use SyndicationItem to display feed which is
I have a jquery bug and I've been looking for hours now, I can't
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
this is what i have right now Drawing an RSS feed into the php,
I am trying to loop through a bunch of documents I have to put
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
link Im having trouble converting the html entites into html characters, (&# 8217;) i
Basically, what I'm trying to create is a page of div tags, each has
I have a French site that I want to parse, but am running into

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.