View Single Post
 
Old 03-16-2014, 09:14 AM
hanna21 hanna21 is offline
Newcomer
 
Join Date: Jul 2011
Posts: 2
Default winsock multipart

am trying to post on my site but it isnt working.

Code:
POST /wiki/index.php?title=Discu%C5%A3ie_Utilizator:gsddfds3&action=submit HTTP/1.1
Host: www.mijnzibit.nl
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:27.0) Gecko/20100101 Firefox/27.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: http://www.mijnzibit.nl/wiki/index.php?title=Discu%C5%A3ie_Utilizator:gsddfds3&action=submit
Cookie: PHPSESSID=e60f385ee69e64a51875f17ba2951e24; zibitxm7_wiki_session=10a39467ce5301cd1849906fce82fed2
Connection: keep-alive
Content-Type: multipart/form-data; boundary=---------------------------611033957990

Code:
-----------------------------611033957990\r\n
Content-Disposition: form-data; name="wpSection"\r\n
\r\n
\r\n
-----------------------------611033957990\r\n
Content-Disposition: form-data; name="wpStarttime"\r\n
\r\n
20140316100207\r\n
-----------------------------611033957990\r\n
Content-Disposition: form-data; name="wpEdittime"\r\n
\r\n
20140316100207\r\n
-----------------------------611033957990\r\n
Content-Disposition: form-data; name="wpScrolltop"\r\n
\r\n
0\r\n
-----------------------------611033957990\r\n
Content-Disposition: form-data; name="wpAutoSummary"\r\n
\r\n
d41d8cd98f00b204e9800998ecf8427e\r\n
-----------------------------611033957990\r\n
Content-Disposition: form-data; name="oldid"\r\n
\r\n
0\r\n
-----------------------------611033957990\r\n
Content-Disposition: form-data; name="wpTextbox1"\r\n
\r\n
aggass2223333333332\r\n
-----------------------------611033957990\r\n
Content-Disposition: form-data; name="wpSummary"\r\n
\r\n
\r\n
-----------------------------611033957990\r\n
Content-Disposition: form-data; name="wpSave"\r\n
\r\n
Pagina opslaan\r\n
-----------------------------611033957990\r\n
Content-Disposition: form-data; name="wpEditToken"\r\n
\r\n
+\\\r\n
-----------------------------611033957990--\r\n





Code:
Private Sub ws_Connect()
Dim agent As String, agent1 As String
Dim packket As String, packet1 As String, packet2 As String, packet3 As String, posst As String, login As String
Dim chip As String, chip2 As String
login2 = "-----------------------------611033957990\r\n" & vbCrLf & Text3 & vbCrLf & "\r\n" & vbCrLf & "\r\n" & vbCrLf & "-----------------------------611033957990\r\n" & vbCrLf & Text4.Text & vbCrLf & "\r\n" & vbCrLf & "20140316100207\r\n" & vbCrLf & "-----------------------------611033957990\r\n" & vbCrLf & Text6.Text & vbCrLf & "\r\n" & vbCrLf & "20140316100207\r\n" & vbCrLf & "-----------------------------611033957990\r\n" & vbCrLf & Text7.Text & vbCrLf & "\r\n" & vbCrLf & "0\r\n" & vbCrLf & "-----------------------------611033957990\r\n" & vbCrLf & Text8.Text & vbCrLf & "\r\n" & vbCrLf & "d41d8cd98f00b204e9800998ecf8427e\r\n" & vbCrLf & "-----------------------------611033957990\r\n" & vbCrLf & Text9.Text & vbCrLf & "\r\n" & vbCrLf & "0\r\n" & vbCrLf & "-----------------------------611033957990\r\n" & vbCrLf & Text10.Text & vbCrLf & "\r\n" & vbCrLf & "aggass2222\r\n" & vbCrLf & "-----------------------------611033957990\r\n" & vbCrLf & Text11.Text & vbCrLf & "\r\n" & vbCrLf & "\r\n" & vbCrLf & _
"-----------------------------611033957990\r\n" & vbCrLf & Text12.Text & vbCrLf & "\r\n" & vbCrLf & "Pagina opslaan\r\n" & vbCrLf & "-----------------------------611033957990\r\n" & vbCrLf & Text13.Text & vbCrLf & "\r\n" & vbCrLf & "+\\\r\n" & vbCrLf & "-----------------------------611033957990--\r\n"
packet = "POST /wiki/index.php?title=Discu%C5%A3ie_Utilizator:asdaz333&action=submit HTTP/1.1" & vbCrLf
packet = packet & "Host: www.mijnzibit.nl" & vbCrLf
packet = packet & "User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:27.0) Gecko/20100101 Firefox/27.0" & vbCrLf
packet = packet & "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" & vbCrLf
packet = packet & "Accept-Language: en-US,en;q=0.5" & vbCrLf
packet = packet & "Accept-Encoding: gzip , deflate" & vbCrLf
packet = packet & "Referer: http://www.mijnzibit.nl/wiki/index.php?title=Discu%C5%A3ie_Utilizator:gsddfds3&action=submit" & vbCrLf
packet = packet & "Cookie: PHPSESSID=e60f385ee69e64a51875f17ba2951e24; zibitxm7_wiki_session=10a39467ce5301cd1849906fce82fed2" & vbCrLf
packet = packet & "Connection: keep-alive" & vbCrLf
packet = packet & "Content-Type: multipart/form-data; boundary=---------------------------611033957990" & vbCrLf


packet = packet & "Content-Length: " & Len(login2) & vbCrLf & vbCrLf '& login2

'packet = packet & "Content-Length: " & Len(packet) & vbCrLf & vbCrLf & packet
ws.SendData packet



End Sub
Reply With Quote