Goldsworth_Systems
2005-02-27 16:21:03 UTC
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).
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).