Question: I am calling odata post api having HTTP header filed is "form-data". Below is my code :-

```
NSURL *restURL = [NSURL URLWithString:urlString];
    NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:restURL];
    [request setHTTPMethod: getorpost];
    if (jsonData != nil) {
                [request setValue:@"application/form-data" forHTTPHeaderField:@"Content-Type"];

         [request setHTTPBody:jsonData];
    }

    NSURLConnection *connection = [[NSURLConnection alloc]initWithRequest:request delegate:self];
    if (connection) {
        responseData = [[NSMutableData alloc] init];
    } 

```

And i am getting below response:-

Processing of the HTTP request resulted in an exception. Please see the HTTP response returned by the 'Response' property of this exception for details 

But, it is working fine in Postman. Can anyone please suggest where is the fault in my code.

Thanks,

Answer: 
I'm not sure that this library can be used within the browser since it relies on the `google-auth-library` library that uses the `request` one. The latter can only be used within Node applications...

There is a port of the `request` library for the browser: <https://www.npmjs.com/package/browser-request>.

Regarding your error, perhaps you forgot to include SystemJS in your HTML file:

```
<script src="node_modules/angular2/bundles/angular2-polyfills.js"></script>
<script src="node_modules/systemjs/dist/system.src.js"></script>  <----

```
There is now an `ng-gapi` npm wrapper for googleapis functionality for Angular. This may support your requirements: <https://www.npmjs.com/package/ng-gapi>