文件名称:MFC UploadPhoto实例加源码.rar
文件大小:45KB
文件格式:RAR
更新时间:2014-06-29 06:22:58
UploadPhoto实例加源码 mfc
post数据,是直接在http协议头将Content-Type设为application/x-www-form-urlencoded,这样服务器会将提交的数据,当作表单数据处理。发送的数据格式也为:userid=lilu&data=post图片类&name=天漏客。而post图片则是自己构造http协议数据,将http协议头的Content-Type设为multipart/form-data,同时还要加上 boundary=xxxxxxx(xxxxxxx表示一个字符串),后面的协议数据内容将要以这个xxxxxxx来进行分隔。发送的数据格式为:
【文件预览】:
StdAfx.cpp
resource.h
UploadPhoto.clw
UploadPhoto.rc
UploadPhoto.cpp
UploadPhoto.ncb
UploadPhotoDlg.cpp
UploadPhoto.h
SendData.h
UploadPhoto.aps
UploadPhoto.exe
ReadMe.txt
StdAfx.h
SendData.cpp
UploadPhoto.opt
UploadPhotoDlg.h
res
----UploadPhoto.ico(1KB)
----UploadPhoto.rc2(403B)
UploadPhoto.dsw
UploadPhoto.dsp