Code:
Dim URL As String = "http://wallinside.com/createBlog.php"
Dim request As HttpWebRequest
Dim response As HttpWebResponse = Nothing
Dim reader As StreamReader
Dim address2 As Uri
Dim Postdata As StringBuilder
Dim byteData() As Byte
' System.Net.ServicePointManager.Expect100Continue = False
Dim postStream As Stream = Nothing
address2 = New Uri(URL)
' Create the web request
request = DirectCast(WebRequest.Create(address2), HttpWebRequest)
request.ContentType = "application/x-www-form-urlencoded"
request.ServicePoint.Expect100Continue = False
request.Host = "wallinside.com"
request.Accept = "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8"
request.Headers.Set("Origin", "http://wallinside.com")
request.UserAgent = USERAGENT
request.Referer = "http://wallinside.com/"
request.SendChunked = True
request.Headers.Set("Accept-Language", "en-GB,en-US;q=0.8,en;q=0.6,pl;q=0.4")
request.Headers.Set("Accept-Encoding", "gzip,deflate,sdch")
request.Headers.Set("Cookie", RegexMatch)
request.MaximumAutomaticRedirections = 10
request.AllowAutoRedirect = True
request.Headers.Set("Cache-Control", "max-age=0")
request.Method = "POST"
RESULT:
Code:
POST http://wallinside.com/createBlog.php HTTP/1.1Content-Type: application/x-www-form-urlencoded
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Origin: http://wallinside.com
User-Agent: Mozilla/5.0 (Windows NT 5.2) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.794.0 Safari/535.1
Referer: http://wallinside.com/
Accept-Language: en-GB,en-US;q=0.8,en;q=0.6,pl;q=0.4
Accept-Encoding: gzip,deflate,sdch
Cookie: PHPSESSID=c53b55216c40f1cfb0cbf07a139f9025; acopendivids=t3,t4,menu; acgroupswithpersist=nada
Cache-Control: max-age=0
Host: wallinside.com
Connection: Keep-Alive
Content-Length: 118
login=12f12faefg%40gsdgsdg&pass1=ko7fLy5pt&ewall=d21d2ff&lg=en&pass2=&nowtime=1398340528&Crear=Sign+Up.+It%27s+free%21
And here is what browser sent:
Code:
POST http://wallinside.com/createBlog.php HTTP/1.1
Host: wallinside.com
Connection: keep-alive
Content-Length: 126
Cache-Control: max-age=0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Origin: http://wallinside.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.116 Safari/537.36
Content-Type: application/x-www-form-urlencoded
Referer: http://wallinside.com/
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-GB,en-US;q=0.8,en;q=0.6,pl;q=0.4
Cookie: PHPSESSID=739eb07a7f39261efd382a60a0a256f3; acopendivids=t3,t4,menu; acgroupswithpersist=nada
login=f3ef23fdgs%40gsdgsdg.com&pass1=8g89sgqg&ewall=asfa7sfgas7f&lg=en&pass2=&nowtime=1398339894&Crear=Sign+Up.+It%27s+free%21
I don't think it is cookie as few times I just had PHPSESSID=*****
Any one ?
Not only site with same issue. POST looks same, but server some how refuse to register :/ (I tried 4 or 5 which are working for 100% with programmatic registration (like 43things)
Fighting for a week and I can't solve it :/
Servers won't register my users
VS2010 + .NET 4.0 Full
Last edited: