Discussion:
Coding for a Specific Connection
(too old to reply)
Goldsworth_Systems
2005-02-27 16:21:03 UTC
Permalink
I am sending data using HTTP to a service provided by VOCA (previously BACs).
This is done by calls to InternetOpen, InternetConnect, HttpOpenRequest,
InternetSetOption, HttpAddRequestHeaders and HttpSendRequest. This posts
data over the internet using the current internet connection. If an internet
connection is not open, the user is prompted to open one.
This seems to work OK. It is also a requirement from VOCA that the data can
also be sent over its “BACs Dial Up Extranet”. This is a dial up connection,
with a specified telephone number, user number and password. I have
successfully set up a dial up connection using these details (I used the New
Connection Wizard). If I run the application with no internet connection
currently running, the application prompts for one, and if I select the BACs
dial up Extranet connection, the data can be sent successfully.
The problem is that I need to be able to set the connection to use
programmatically from the application, and I can’t see any way to do this.
There is a “Proxy” parameter with InternetOpen, however this doesn’t work (I
think this is not the same as the connection).
Reymarx Gereda
2005-03-13 06:31:26 UTC
Permalink
You can use InternetDial before calling InternetOpen in order to initiate the connectio
You can get more information about the function here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wininet/wininet/internetdial.asp

And there are some other functions related to Dial-Up here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wininet/wininet/establishing_a_dial_up_connection_to_the_internet.asp

Hope this helps you

Reymarx [MSFT]
Windows- Networking
This posting is provided "AS IS" with no warranties, and confers no rights
Post by Goldsworth_Systems
I am sending data using HTTP to a service provided by VOCA (previously BACs).
This is done by calls to InternetOpen, InternetConnect, HttpOpenRequest,
InternetSetOption, HttpAddRequestHeaders and HttpSendRequest. This posts
data over the internet using the current internet connection. If an internet
connection is not open, the user is prompted to open one.
This seems to work OK. It is also a requirement from VOCA that the data can
also be sent over its “BACs Dial Up Extranet”. This is a dial up connection,
with a specified telephone number, user number and password. I have
successfully set up a dial up connection using these details (I used the New
Connection Wizard). If I run the application with no internet connection
currently running, the application prompts for one, and if I select the BACs
dial up Extranet connection, the data can be sent successfully.
The problem is that I need to be able to set the connection to use
programmatically from the application, and I can’t see any way to do this.
There is a “Proxy” parameter with InternetOpen, however this doesn’t work (I
think this is not the same as the connection).
Goldsworth_Systems
2005-03-13 08:51:02 UTC
Permalink
Thanks - I am also looking into RasDial and using phonebooks - you seem to
get more control
Post by Reymarx Gereda
You can use InternetDial before calling InternetOpen in order to initiate the connectio
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wininet/wininet/internetdial.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wininet/wininet/establishing_a_dial_up_connection_to_the_internet.asp
Hope this helps you
Reymarx [MSFT]
Windows- Networking
This posting is provided "AS IS" with no warranties, and confers no rights
Post by Goldsworth_Systems
I am sending data using HTTP to a service provided by VOCA (previously BACs).
This is done by calls to InternetOpen, InternetConnect, HttpOpenRequest,
InternetSetOption, HttpAddRequestHeaders and HttpSendRequest. This posts
data over the internet using the current internet connection. If an internet
connection is not open, the user is prompted to open one.
This seems to work OK. It is also a requirement from VOCA that the data can
also be sent over its “BACs Dial Up Extranet”. This is a dial up connection,
with a specified telephone number, user number and password. I have
successfully set up a dial up connection using these details (I used the New
Connection Wizard). If I run the application with no internet connection
currently running, the application prompts for one, and if I select the BACs
dial up Extranet connection, the data can be sent successfully.
The problem is that I need to be able to set the connection to use
programmatically from the application, and I can’t see any way to do this.
There is a “Proxy” parameter with InternetOpen, however this doesn’t work (I
think this is not the same as the connection)
Continue reading on narkive:
Loading...