title: How to set HTTP request using AFNetworking 2?
body: <p>I need to send ordinary HTTP request (GET) and answer will in text/html.
  How can I send this response using AFNetworkin 2 ?</p>
  
  <p>Now I'm trying to use</p>
  
  <pre><code>NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"https://example.com"]];
  [self HTTPRequestOperationWithRequest:request
                                success:^(AFHTTPRequestOperation *operation, id responseObject) {
                                    NSLog(@"JSON: %@", responseObject);
                                } failure:^(AFHTTPRequestOperation *operation, NSError *error) {
                                    NSLog(@"Error: %@", error);
                                }];
  </code></pre>
  
  <p>And was frustrates - it do nothing. When debugging, nor success nor fail clause have been triggered.</p>
  
  <p>Also I tried to use GET:parameters:success:failure:  method, but in response I see this error:</p>
  
  <blockquote>
    <p>Error: Error Domain=AFNetworkingErrorDomain Code=-1016 "Request
    failed: unacceptable content-type: text/html"</p>
  </blockquote>
  
  <p>Please, anybody can explain me what are wrong and what is the correct way to send request (if I will get response  as text/html)?</p>
  
  <p>Regards, Alex.</p>