如何后台访问url地址

Jing_111 2009-05-21 10:37:41
请问一下:如何实现访问url地址,只是想提交一下http网址,并不需要截获数据的
...全文
798 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
代码与单车 2010-03-25
  • 打赏
  • 举报
回复
楼上正解
aa3000 2009-05-21
  • 打赏
  • 举报
回复
使用 wininet、winhttp 或者用 socket 模拟 http 报文
zfd439489860 2009-05-21
  • 打赏
  • 举报
回复
HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(logURL);
request.Method = "POST";
request.KeepAlive = true;
//request.Referer = "http://www.baidu.com";
request.UserAgent = "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1";
request.ContentType = "application/x-www-form-urlencoded";
request.AllowAutoRedirect = true;
request.Accept = "image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/msword, application/x-shockwave-flash, */*";
一些代码而已,后台访问在C#里用了
using System.Text;
using System.Net;
using System.Text.RegularExpressions;
using System.IO;
using System.Web;等类 你可以以这些关键词去搜哦~

3,056

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC HTML/XML
社区管理员
  • HTML/XML社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧