Ditutup

Wininet Proxy Authorization

I want to be able to use proxy authorization with wininet but don know how to do it. If you know how to use proxy authorization with wininet, please place your bid for this little task. Below are the codes I am currently using.

Max Bid: $30

#Region " IE Proxy Settings "

' The structure we use for the information

' to be interpreted correctly by API.

Public Structure Struct_INTERNET_PROXY_INFO

Public dwAccessType As Integer

Public proxy As IntPtr

Public proxyBypass As IntPtr

End Structure

' The Windows API function that allows us to manipulate

' IE settings programmatically.

Private Declare Auto Function InternetSetOption Lib "wininet.dll" _

(ByVal hInternet As IntPtr, ByVal dwOption As Integer, ByVal lpBuffer As IntPtr, _

ByVal lpdwBufferLength As Integer) As Boolean

' The function we will be using to set the proxy settings.

Private Sub RefreshIESettings(ByVal strProxy As String)

Const INTERNET_OPTION_PROXY As Integer = 38

Const INTERNET_OPEN_TYPE_PROXY As Integer = 3

Dim struct_IPI As Struct_INTERNET_PROXY_INFO

' Filling in structure

[url removed, login to view] = INTERNET_OPEN_TYPE_PROXY

[url removed, login to view] = [url removed, login to view](strProxy)

[url removed, login to view] = [url removed, login to view]("local")

' Allocating memory

Dim intptrStruct As IntPtr = [url removed, login to view]([url removed, login to view](struct_IPI))

' Converting structure to IntPtr

[url removed, login to view](struct_IPI, intptrStruct, True)

Dim iReturn As Boolean = InternetSetOption([url removed, login to view], INTERNET_OPTION_PROXY, intptrStruct, [url removed, login to view](struct_IPI))

End Sub

#End Region

Kemahiran: .NET, Destop Windows

Lihat lebih lanjut: wininet proxy, wininet proxy authorization, proxy authorization wininet, proxy authorization, use proxy authorization windows, auto authorization proxy, interpreted, sizeof string, auto codes, wininet windows proxy, windows set proxy authorization, proxy wininet, bid authorization example, internetsetoption examples, wininetdll authorization, auto authorization proxy settings, wininet runtime, vb6 internetsetoption lib wininetdll, internetopen wininet proxy, internetopen proxy authorization, wininet view proxy settings, auto authorize proxy, probleme wininet proxy, proxy authorization sample, vb6 proxy authorization example

Tentang Majikan:
( 0 ulasan ) Las Vegas, United States

ID Projek: #335701

2 pekerja bebas membida secara purata $115 untuk pekerjaan ini

necrolatry

Hello, I can do this task within 1 or 2 days, but only in C or C++, not in Basic. I was working quite a lot with Wininet for 5 years. So I know where to dig.

$200 USD dalam 2 hari
(0 Ulasan)
2.6
freelancersuresh

I have some sample code for wininet using vb.net. if intrested i will post. plz check pmb for more detaisl.

$30 USD dalam sehari
(0 Ulasan)
0.0