vb inet post数据的问题
我用VB的Inet POST发送数据达到和讯博客发布文章的目的~不知道为什么~~POST后~~文章没出现代码是:
Dim myurl As String, send_data As String, my_head As String
myurl = "http://post.blog.hexun.com/14509114/postarticlesubmit.aspx"
send_data= "TitleTextbox=123&CategoryList=290460&NewCategoryTextbox=&AutoSaveCheckbox=on&ContentSpaw=321&TagTextbox=+123&PostType=%D4%AD%B4%B4&PostClass=0&oldclass=0&SourceTextbox=&SourceUrlTextbox=&BriefTextbox=&TrackbackTextbox=&HideCheckbox=1&AcceptCommentCheckbox=on&StickOutExpiredTimeTextbox=&StickOutOrderNumberTextbox=0&chkSelected=&draftid=0&articleid=0&action=0"
my_head = "Referer: http://post.blog.hexun.com/14509114/postarticle.aspx" & vbCrLf
my_head = my_head & "Content-Type: application/x-www-form-urlencoded" & vbCrLf
Inet1.Execute myurl, "POST", send_data, my_head
While Inet1.StillExecuting
DoEvents
Wend
已经登入进去,在POST,就是发布不出来文章
用封包工具。看到返回403
怎么回事啊?? --------------------编程问答-------------------- URL不正确。
对照浏览器的提交分析你的有什么问题。 --------------------编程问答-------------------- Cookie提交了吗
my_head = my_head & "Cookie: XXXXXXXXXXXXXXXXXXX" & vbCrLf --------------------编程问答-------------------- 接分来着
补充:VB , 网络编程