Wininet InternetErrorDlg proxy
来源:互联网 发布:用友软件销售好做吗 编辑:程序博客网 时间:2024/06/06 20:07
I want to read an internet html-file, my program has to work with and
without proxyserver.
I am using the following Dlls (in case no proxyserver without
authentication):
InternetOpen, InternetOpenUrl,InternetReadFile and InternetCloseHandle.
this is working well.
In case of proxyserver I am looking for help:
I am using the following Dlls:
InternetOpen,InternetConnect,HttpOpenRequest,HttpSendRequest,InternetReadFil
e and InternetCloseHandle.
How can I obtain (on the client machine) the name of the proxy server and
the authenticated user?
Maybe I could show the InternetErrorDlg()-Dialog.
But the dialog is not shown when running my code; here is my code to show
the dialog (the return value is 6, no dialog is shown)
....
hsession = InternetOpen(mc_USER_AGENT, INTERNET_OPEN_TYPE_PRECONFIG,
vbNullString, vbNullString, 0)
If hsession Then
hconnection = InternetConnect(hsession, sRemoteHost,
INTERNET_INVALID_PORT_NUMBER, vbNullString,vbNullString,
INTERNET_SERVICE_HTTP, 0, 0)
If hconnection Then
hInternet = HttpOpenRequest(hconnection, "GET", strurl, "HTTP/1.0",
vbNullString, 0, INTERNET_FLAG_RELOAD, 0)
If hInternet Then
bres = HttpSendRequest(hInternet, vbNullString, 0, vbNullString, 0)
geterrdlg(hInternet)
....
Private Sub geterrdlg(hrequest As Long)
Dim lRet As Long
lRet = InternetErrorDlg(App.hInstance, hrequest,
ERROR_INTERNET_INCORRECT_PASSWORD, FLAGS_ERROR_UI_FLAGS_CHANGE_OPTIONS,
vbNullString)
End Sub
I use VB6.
Thank you very much for any help.
Best regards
Roswitha
without proxyserver.
I am using the following Dlls (in case no proxyserver without
authentication):
InternetOpen, InternetOpenUrl,InternetReadFile and InternetCloseHandle.
this is working well.
In case of proxyserver I am looking for help:
I am using the following Dlls:
InternetOpen,InternetConnect,HttpOpenRequest,HttpSendRequest,InternetReadFil
e and InternetCloseHandle.
How can I obtain (on the client machine) the name of the proxy server and
the authenticated user?
Maybe I could show the InternetErrorDlg()-Dialog.
But the dialog is not shown when running my code; here is my code to show
the dialog (the return value is 6, no dialog is shown)
....
hsession = InternetOpen(mc_USER_AGENT, INTERNET_OPEN_TYPE_PRECONFIG,
vbNullString, vbNullString, 0)
If hsession Then
hconnection = InternetConnect(hsession, sRemoteHost,
INTERNET_INVALID_PORT_NUMBER, vbNullString,vbNullString,
INTERNET_SERVICE_HTTP, 0, 0)
If hconnection Then
hInternet = HttpOpenRequest(hconnection, "GET", strurl, "HTTP/1.0",
vbNullString, 0, INTERNET_FLAG_RELOAD, 0)
If hInternet Then
bres = HttpSendRequest(hInternet, vbNullString, 0, vbNullString, 0)
geterrdlg(hInternet)
....
Private Sub geterrdlg(hrequest As Long)
Dim lRet As Long
lRet = InternetErrorDlg(App.hInstance, hrequest,
ERROR_INTERNET_INCORRECT_PASSWORD, FLAGS_ERROR_UI_FLAGS_CHANGE_OPTIONS,
vbNullString)
End Sub
I use VB6.
Thank you very much for any help.
Best regards
Roswitha
0 0
- Wininet InternetErrorDlg proxy
- wininet proxy 代理问题
- WinInet
- wininet
- WinInet
- WinInet
- WinInet
- WinInet
- WinInet
- WinInet
- WinInet
- WinINet
- Proxy
- proxy
- PROXY
- Proxy
- Proxy
- Proxy
- 2014-04碰到的一些问题(一)
- SQL Server 查看死锁的存储过程
- adb截屏并保存到当地
- 方法中的散列可变参数
- Algorithm学习笔记 --- 生理周期
- Wininet InternetErrorDlg proxy
- NK.bin和NK.nb0详解
- 蓝桥杯vip题目 阶乘计算
- 2014.4.14 daily schedual
- CentOS下使用VIM打造C/C++开发环境
- MySQL修改密码方法
- Xamarin - Disadvantages
- S2SH通用分页
- ListView下拉刷新,上拉自动加载更多