I keep getting the following ErrorWhen trying to response.redirect using the following codeCode:System.ArgumentException: Redirect URI cannot contain newline characters. at System.Web.HttpResponse.Redirect(String url, Boolean endResponse) at System.Web.HttpResponse.Redirect(String url) at club256VB Code:
Dim auth_key As String HttpResp = HttpReq.GetResponse objStreamReader = New StreamReader(HttpResp.GetResponseStream) 'auth_key = objStreamReader.ReadToEnd auth_key = Replace(Replace(objStreamReader.ReadToEnd, vbCrLf, ""), " ", "") Response.Redirect(RedirectURL & "?code=" & Trim(auth_key))
I can't see why the string 'AuthKey' still has a newline char in it.
Any ideas?


Reply With Quote