How to pass a URL as parameter to APIController through AJAX call?
<p>I am trying to pass URL as string parameter to API Controller POST method. However, I am getting 'Potentially dangerous request' error due to the special character ':' in the URL.</p>

<p>Format of the URL will be 'http|s://xxxxxxxxx/.../.... etc.</p>

<p>I tried encodeURI, but it is still failing.</p>

<pre><code>$.ajax({
    type: "POST",
    url: "http://localhost:101/api/Sample/" + encodeURI(url),
    contentType: "application/json; charset=utf-8",
    dataType: "json"....
})
</code></pre>