title: C# WebAPI - getting URL with parameters passed as QueryString
body: <p>I've been searching for this problem but non was identical to my case.</p>
  
  <p>I have the following controller:</p>
  
  <pre><code> public HttpResponseMessage GetMyService(int aType, [FromUri] string streamURL)
  </code></pre>
  
  <p><strong>streamURL</strong> is a parameter that gets a full URL sent by the client.</p>
  
  <p>The client calls the service like that:
  <em><a href="http://www.myservice.com/.../GetMyService/?aType=1&amp;streamURL=http://www.client.com/?p1=100&amp;p2=200" rel="nofollow noreferrer">http://www.myservice.com/.../GetMyService/?aType=1&amp;streamURL=http://www.client.com/?p1=100&amp;p2=200</a></em></p>
  
  <p>The problem is that at then end, I get the <strong>[FromUri] string streamURL</strong> parameter as <a href="http://www.client.com/" rel="nofollow noreferrer">http://www.client.com/</a>?<strong>p1=100</strong> without the <strong>&amp;p2=200</strong></p>
  
  <p>This is known and reasonable, but I cannot place any encoding/decoding functionality as the URL is cut at the very beginning.</p>
  
  <p>Any help would be appreciated..</p>
  
  <p>THX </p>