How to use back slash in NSURL
<p>I am trying to call a web service on iPhone as follows;</p>

<pre><code>NSURL *url = [NSURL URLWithString:@"http://DOMAIN\Username:Password@IPAddress/ServiceName"];    
</code></pre>

<p>When this line is executed url is <strong>nil</strong>. But when i remove <strong>"\"</strong> from above call, url contains the value.</p>

<p>I have already tried using "\\" but it didn't worked. Here is my code</p>

<pre><code>NSString *Domain = [NSString stringWithFormat:@"DOMAIN"]; 
NSString *name = [NSString stringWithFormat:@"UserName"]; 
NSString *urlString = [NSString stringWithFormat:@"http://%@\\%@:password@IPAddress",Domain,name]; 

//Above lines executes properly and contains the following 
"https://DOMAIN\UserName:password@IPAddress" 
</code></pre>

<p>But when the following line gets executed url is nil </p>

<pre><code>NSURL *url = [NSURL URLWithString:urlString];
</code></pre>

<p>Can any body help me how i can put "\" in URL?</p>

<p>Thanks.
Yasar</p>
