• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
ASIFormDataRequest doesn't fetch responseString
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ASIFormDataRequest doesn't fetch responseString


  • Subject: ASIFormDataRequest doesn't fetch responseString
  • From: Kévin Vavelin <email@hidden>
  • Date: Thu, 30 Aug 2012 17:36:00 +0200

Hi there,

I try to fetch a responseString from my request and I just can't get it working well… Everything is good but my request is send in asynchronous mode and I used block for fetching my string. This method doesn't working well so I ask you if you can help me more ;)

Here's the code :

    __block ASIFormDataRequest *request = [ASIFormDataRequest requestWithURL:[NSURL URLWithString:@"http://accident.monautosurlenet.fr/Handlers/IOS/Upload.ashx";]];
    [request setDelegate:self];
    [request setCompletionBlock:^{
        NSString *string = [request responseString];
        NSLog(@"%@", string);
    }];
    //adding my data
    [request startAsynchronous];

Do you have an idea ?


Best regards,
Vavelin Kévin
Twitter | Blog | LinkedIn
Entrepreneur
Developer OS X / iOS

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Prev by Date: Re: On handling those lovely unrecognized selector sent to instance SIGABRTs
  • Next by Date: Re: Sandboxing die.die.die
  • Previous by thread: Apple Mach-O Linker Error
  • Next by thread: Re: IKImageBrowseView and QuickLook panel
  • Index(es):
    • Date
    • Thread