I am writing an iPhone application that needs to get data from a web service. In this service, there is a possibility of the same variable having multiple values, and this variable is accessed using [ ] brackets. (I am not a PHP developer, but I understand this scheme is not uncommon for PHP services.)

So a sample request might look like:

> 
> example.com/service.php?id[]=1&id[]=2
> 
> 
> 

The code I am using to form the URL looks like this:

```
NSString *string = @"http://example.com/service.php?id[]=1&id[]=2";
NSURL *url = [NSURL URLWithString:string];
NSMutableURLRequest *networkRequest = [NSMutableURLRequest requestWithURL:url];
...

```

The problem is that, after the second line, the URL is automatically encoded, so that the URL is really tries to access looks like this:

> 
> example.com/service.php?id%5B%5D=1&id%5B%5D=2
> 
> 
> 

As a result, my request does not access the information I want. Is there a way to prevent NSURL from encoding my URL so that it can access this web service?