By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,352 Members | 1,645 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,352 IT Pros & Developers. It's quick & easy.

Internet Tranfer Control

P: n/a
G'day All,

I'm trying to code a "Data Downloader" to automatically login and
download data from www.Investorweb.com.au using the Internet Transfer
Control.

I have a some VB experience but no experience with web programming apart
from basic html, forms etc.

1). I've extracted the following from the login page

<SNIP>
https://www.investorweb.com.au/mb_login_page.asp
<FORM name="frmLogin"
action="mb_login_page.asp?_sn=D8C6E62C-71C1-422C-AC43-0B73B9B4903F&_c=&_dt=28%2F08%2F2004+4%3A28%3A58+PM &popUpType=Login"
method="POST">
<INPUT type=hidden name="GoBack" value="">
<INPUT type="text" name="memberID" size="20" class="clsFieldData"
value="userA">
<input type="password" name="pswd" size="20" class="clsFieldData"
value="mypassword">
<INPUT TYPE="checkbox" NAME="remember_me" VALUE="Y" checked>
<INPUT class="clsBtnGo" type=submit name="subLogin" value="Login">
<INPUT class="clsBtnGo" type=submit name="subCancel" value="Cancel"> </SNIP>

I've found a few examples of using the Internet Transfer Control but
none similar to my needs. I've experimented with using the "post" method
but can't get any clues.

Q1). Is the Internet Transfer Control suitable for this task?

Q2). If not what is the best approach to my problem?

Q3). If it is, could you please give me some pointers?

Thanking you in advance,
build
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
A1) I have used both winsock and inet controls for internet communication.
Both are good to use. Its a matter of opinion over which one to use for your
specific operation.

Using Inet you can add your own headers to the request packet to already
formed packet vs. winsock.. you must construct your own packet from the
ground up.

Inet & winsock will both get the entire received data back from the server
for parsing on client end.

Inet is more for a beginner approach 'In my opinion' although in some
instances can be quite tricky.

A2 - A3) kind of answered above.

A4) Read about Inet and Winsock Controls on MSDN to find out exactly how to
use them for your needs.

Also be aware that this site looks as though it sets cookies so parse out
every and all cookies needed to login and use within your request headers in
the appropriate areas. (use a packet sniffer to find out how to form a
packet for this perticular site)

Good luck.
Mike
"build" <bu*****@datafast.net.au> wrote in message
news:41********@news.alphalink.com.au...
G'day All,

I'm trying to code a "Data Downloader" to automatically login and
download data from www.Investorweb.com.au using the Internet Transfer
Control.

I have a some VB experience but no experience with web programming apart
from basic html, forms etc.

1). I've extracted the following from the login page

<SNIP>
https://www.investorweb.com.au/mb_login_page.asp
<FORM name="frmLogin"
action="mb_login_page.asp?_sn=D8C6E62C-71C1-422C-AC43-0B73B9B4903F&_c=&_dt=28%2F08%2F2004+4%3A28%3A58+PM &popUpType=Login"
method="POST">
<INPUT type=hidden name="GoBack" value="">
<INPUT type="text" name="memberID" size="20" class="clsFieldData"
value="userA">
<input type="password" name="pswd" size="20" class="clsFieldData"
value="mypassword">
<INPUT TYPE="checkbox" NAME="remember_me" VALUE="Y" checked>
<INPUT class="clsBtnGo" type=submit name="subLogin" value="Login">
<INPUT class="clsBtnGo" type=submit name="subCancel" value="Cancel">
</SNIP>

I've found a few examples of using the Internet Transfer Control but
none similar to my needs. I've experimented with using the "post" method
but can't get any clues.

Q1). Is the Internet Transfer Control suitable for this task?

Q2). If not what is the best approach to my problem?

Q3). If it is, could you please give me some pointers?

Thanking you in advance,
build

Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.