404 Error On HttpWebRequest
<p>I'm trying to check if an username is available on a specific webiste but it comes up with an 404 error.</p>

<pre><code>Dim Request As System.Net.HttpWebRequest = System.Net.HttpWebRequest.Create("https://www.instagram.com/" + userToCheck &amp; "/")
        Dim response As System.Net.HttpWebResponse = Request.GetResponse()

        Dim sReader As System.IO.StreamReader = New System.IO.StreamReader(response.GetResponseStream)
        Dim steamResult As String = sReader.ReadToEnd()

        If steamResult.Contains("Sorry") Then
            addAvailable()
</code></pre>

<p>Althought this works:</p>

<pre><code> Dim Request As System.Net.HttpWebRequest = System.Net.HttpWebRequest.Create("http://steamcommunity.com/id/" + userToCheck)
            Dim response As System.Net.HttpWebResponse = Request.GetResponse()

            Dim sReader As System.IO.StreamReader = New System.IO.StreamReader(response.GetResponseStream)
            Dim steamResult As String = sReader.ReadToEnd()

            If steamResult.Contains("The specified profile could not be found.") Then
                addAvailable()
            End If
</code></pre>

<p>Any ideas what's wrong?</p>