1.用InternetConnect建立连接
2.用HttpOpenRequest打开请求
3.用HttpSendRequestEx启动请求发送
4.用InternetWriteFile写入Post数据
5.重复4,直到Post数据完了
6.用InternetEndRequest结束请求
2.用HttpOpenRequest打开请求
3.用HttpSendRequestEx启动请求发送
4.用InternetWriteFile写入Post数据
5.重复4,直到Post数据完了
6.用InternetEndRequest结束请求
解决方案 »
- 在一个线程里往另一个线程的窗口SendMessage会怎么样?
- 苍天啊,大地啊,谁能帮我解决这个问题啊
- CloseHandle()后,一定要再把这个句柄变量设定为NULL吗?
- ::WinHelp(GetSafeHwnd(),"C:\WINDOWS\system32\MSCAL.HLP",HELP_FINDER,0);
- 给工具栏加颜色
- 武大计算机学院的地址是什么
- 求教com+调用异常的处理
- 小弟对硬件编程颇感兴趣,我想用手柄(PS并口手柄)代替鼠标键盘做一些输入工作,不知如何对手柄编写程序,我有它的驱动程序,是不是要用D
- SOS!关于线程退出码的问题
- 为何登录后会出现错误框,问是否要调试本页,点否后无法回复别人的贴?
- Moniker是什么意思?
- 希望各位谈谈环境的重要性
查看一下RFC文档,可能你的数据不符合协议要求。
您讲的太简单了,能不能有一个例程讲解,因为WinInet API的设置一直是个问题。
谢谢。
jiujiejushi:
我不知道在那里有RFC文档,更不知道讲的内容,能不能给我一个下载地址呢?
谢谢。
希望大家都来讨论这个问题。
wpf_first_file_as_default if this flag is set then take the first file specified in the lppszlocalpaths list as the file that will be shown as the default page.
wpf_minimal_ui skip the wizard pages where the input has been given. if lpszsitename is given then the wizard will not show the page for choosing the site name
wpf_no_recursive_post do not post the files recursively if lppszlocalpaths array points to a directory.
wpf_no_wizard do not display the wizard. this is relevant only if lpszsitename has been created before. or just give 0 as the value. in this sample code i just gave 0 as the value to this parameter. here i stop my blah blah and lets look at the code.
long cpostview::post( )
{
long lret; //return value lret = wppost( getsafehwnd(), // handle to the window
null, // number of files to be posted, can be null
null, // files list, can be null
null, // site name count, can be null
null, // site name, can be null
null, // url count, can be null
null, // url name, can be null
0
); // flags return lret;
}
this post() function internally calls wppost function. since all the parameters are given null wppost function calls the wizard to post the files to the web. that's it folks. i will update this article soon with more features. if you have better idea or if you find any bugs in this article let me know. updated on may 23 1998