Hey Guys, Looking for anyone that knows a bit about VB.NET & HTTPWebRequest. I'm new to VB, been learning for the past 3 months now and have finalyl gotten around to making up a new app from scratch but am running into issues already! Below is a function from a class, I am using this function to login to Twitter: Code: Private cookies As CookieContainer Public Function Post_Content(ByVal URL As String, ByVal Data As String, Optional ByVal Referrer As String = "", Optional ByVal MultiPart As Boolean = False) As String Dim encoding As New UTF8Encoding Dim byteData As Byte() = encoding.GetBytes(Data) Dim Content As String = Nothing Try ' New Request System.Net.ServicePointManager.Expect100Continue = False Dim request As HttpWebRequest = DirectCast(WebRequest.Create(URL), HttpWebRequest) ' Set Proxy Details Dim myProxy As New WebProxy(Proxy, Port) myProxy.Credentials = New NetworkCredential(ProxyUser, ProxyPass) request.Proxy = myProxy ' Request Settings request.Method = "POST" ' request.KeepAlive = True request.AllowAutoRedirect = True request.Timeout = MaxTimeout request.CookieContainer = cookies request.UserAgent = "Mozilla/5.0 (Windows; U; Windows NT 6.1; ru; rv:18.104.22.168) Gecko/20100401 Firefox/4.0 (.NET CLR 3.5.30729)" request.ContentLength = byteData.Length If MultiPart = False Then request.ContentType = "application/x-www-form-urlencoded" Else request.ContentType = "multipart/form-data" End If If Referrer <> "" Then request.Referer = Referrer ' Read Stream Dim postreqstream As Stream = request.GetRequestStream() postreqstream.Write(byteData, 0, byteData.Length) postreqstream.Close() Dim postresponse As HttpWebResponse postresponse = DirectCast(request.GetResponse(), HttpWebResponse) ' Check HTTP Status If postresponse.StatusCode = Net.HttpStatusCode.OK Then Dim postreqreader As New StreamReader(postresponse.GetResponseStream()) Content = postreqreader.ReadToEnd End If ' Add Cookies If postresponse.Cookies.Count > 0 Then cookies.Add(postresponse.Cookies) ' Close Connection postresponse.Close() Catch ex As Exception Throw New Exception("Error occurred while posting content to '" + URL + "': " + ex.Message, ex) End Try ' Return HTML Content Return Content End Function The issue is that the cookies are not being saved to my cookie container. After using the above function to register a new account the account is registered just fine and I can use the same credentials in my browser to login but instantly within VB, after the POST the next page I am already logged back out again before EVER seeing a logged in page. Would this be due to some sort of redirect in place? I have created the same bot in PHP/CURL that works fine and POST's exactly the same data so it must be something to do with my POST function and/or my cookiecollection.