Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Try:</p> <pre><code>NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"https://admin.poslavu.com/cp/reqserv/"]]; [request setValue:@"gzip" forHTTPHeaderField:@"Accept-Encoding"]; [request setHTTPBody:[[NSString stringWithFormat:@"dataname=tangere_techno&amp;key=dBkeY&amp;token=dBt0kEn&amp;table=menu_groups"] dataUsingEncoding:NSUTF8StringEncoding]]; [request setHTTPMethod:@"POST"]; NSError *error = nil; NSURLResponse *response = nil; NSData *data = [NSURLConnection sendSynchronousRequest:request returningResponse:&amp;response error:&amp;error]; if (error) { NSLog(@"Error:%@", error.localizedDescription); } else { //success } </code></pre> <p>Data should be your XML info, you'll need to parse it first though. You should try looking at Apple's docs for more information. If you are trying to make the request asynchronously try this:</p> <pre><code>NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"https://admin.poslavu.com/cp/reqserv/"]]; [request setValue:@"gzip" forHTTPHeaderField:@"Accept-Encoding"]; [request setHTTPBody:[[NSString stringWithFormat:@"dataname=tangere_techno&amp;key=dBkeY&amp;token=dBt0kEn&amp;table=menu_groups"] dataUsingEncoding:NSUTF8StringEncoding]]; [request setHTTPMethod:@"POST"]; AFHTTPRequestOperation *operation = [[AFHTTPRequestOperation alloc] initWithRequest:req]; [operation setCompletionBlockWithSuccess:^(AFHTTPRequestOperation *operation, id responseObject){ NSData *data = (NSData *)responseObject; } failure:^(AFHTTPRequestOperation *operation, NSError *error) { NSLog(@"Error: %@", error); }]; [operation start]; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload