比如,我要判断 http://www.some.net/net.jpg 这个图片文件是否存在,怎么实现?
谢谢,在线等待
谢谢,在线等待
解决方案 »
- 关于系统环境变量的问题
- 应用程序正常初始化(0x0000142)失败,跪下了!
- 程序窗口绘制完成后,怎样强制让菜单再绘一次?
- 如何截取msn的聊天信息?
- 有谁能够解决这个问题
- 控制WORD:如何设置ActiveDocument.Application.UserName?
- 如何将光盘上的所有文件拷贝到指定的folder下!急呀!!!
- 如何设置对话框背景图,使(最小化等操作后)重画时所有控件不被覆盖?
- 一个关于DaoRecordset的问题
- 新手求助,写入dll路径名失败
- CString 怎样转换为int, char * ,VC有没有类似BCB的StrToInt()等的函数
- 如何在静态文本框上显示位图?
一般地发送http请求的各种方法中都包含了一获得status的方法.
2003/10/18 15:26:6.485 (send,len=358)
GET /net.jpg HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/msword, application/x-shockwave-flash, */*
Accept-Language: zh-cn
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; MyIE2; .NET CLR 1.1.4322)
Host: www.csdn.net
Connection: Keep-Alive
HTTP/1.1 404 Object Not Found
Server: Microsoft-IIS/5.0
Date: Sat, 18 Oct 2003 07:29:55 GMT
Connection: close
Content-Length: 4766
Content-Type: text/html<!-- saved from url=(0022)http://internet.e-mail -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0066)http://expert.csdn.net/Expert/topic/1256/1256949.xml?temp=.1253626 -->
<HTML dir=ltr><HEAD><TITLE>无法找到网页</TITLE>
<STYLE>A:link {
FONT: 9pt/11pt 宋体; COLOR: #ff0000
}
A:visited {
FONT: 9pt/11pt 宋体; COLOR: #4e4e4e
}
</STYLE><META content=NOINDEX name=ROBOTS>
<META http-equiv=Content-Type content="text-html; charset=gb2312">
<META content=ZH-CN name=MS.LOCALE>
<SCRIPT>
function Homepage(){
<!--
// in real bits, urls get returned to our script like this:
// res://shdocvw.dll/http_404.htm#http://www.DocURL.com/bar.htm //For testing use DocURL = "res://shdocvw.dll/http_404.htm#https://www.microsoft.com/bar.htm"
DocURL = document.URL; //this is where the http or https will be