HTTPS connections

  • Thread starter Thread starter Masahiro Ito
  • Start date Start date
M

Masahiro Ito

I need to be login to several websites and download files that are https
connections. I just tried IPWorks demo, but it does not seem to offer
https.

Does anyone know an https capable product, or a way I can do this myself?

Thank you.

Masahiro
 
Chad Z. Hower aka Kudzu said:
WebRequest which is built in can do HTTPS.

Hi Chad. I am following and very interested in your project, but first
learning hard so hopefully soon I can help.

I am using Webrequest, and can get the HTTPS pages, but don't have any
experience with ASP, forms, post etc.

The page I am trying to login seems to have a simple form:

<h5>To login:</h5>
<FORM NAME="form1" TARGET="_top" ACTION="signon.asp" METHOD="post">
<INPUT TYPE="hidden" NAME="action" VALUE="admin">
<table width="59%" border="0">
<tr>
<td width="64%">Please enter your User ID:</td>
<td width="36%"><input name="Uid" id="Uid" maxLength=13>
</td>
</tr>
<tr>
<td>Please enter your password:</td>
<td><input name="Pswd" type="password" id="Pswd" maxLength=10>
</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>
<input name="Submit" type="submit" id="Submit2" value="Login">
</td>
</tr>
</table>
</FORM>

I have been using many variations like:
Dim web As New System.Net.WebClient
web.Headers.Add("Content-Type", "application/x-www-form-
urlencoded")

Dim d As Byte() = System.Text.Encoding.ASCII.GetBytes
("uid=UserID&pswd=Password")
Dim res As Byte() = web.UploadData
("https://free.info.com/login.html", "POST", d)

txtReturn.Text = System.Text.Encoding.ASCII.GetString(res)
web.Dispose()


This page is the login page. The page with the data I want to access
(files to download) is different. I tried using this page, (ie:
"https://free.info.com/download.asp" but it redirects to a page that must
submit an "I agree with the Contract", then a page for login (if i follow
in IE).

This site is not very secure (I can download the files without any
authentication if I know the filename of the file), but the filenames
change every month and I would like to be able to get the html page using
authentication.


Thank you.

Masa
 
Masahiro Ito said:
Hi Chad. I am following and very interested in your project, but first

Thanks. But its not mine. :) There is a whole team behind it - I could not
possibly take credit for all their hard and dedicated work. Im just the
chair.
learning hard so hopefully soon I can help.

Would love to have you on board.
Dim d As Byte() = System.Text.Encoding.ASCII.GetBytes
("uid=UserID&pswd=Password")
Dim res As Byte() = web.UploadData
("https://free.info.com/login.html", "POST", d)

Im not that familiar with WebRequest's actual usage, only its capabilities. I
have no need to use it. :)

But you have a few possible problems:

1)
<INPUT TYPE="hidden" NAME="action" VALUE="admin">
<input name="Submit" type="submit" id="Submit2" value="Login">

You forgot to include these two variables in your list.

2) POST passes arguments differently. Im not sure that you are passing them
correctly, but I dont know how UploadData uses that third parameter.

3) Im not sure what UploadData does - but it doesnt sound like the right
method for post. It might be - if so its not named in the style of HTTP. In
Indy you would just call .Post. Upload data to me sounds more like a raw
command interface - maybe thats what it is.

If it were Indy I could tell you exactly how to do it. But Indy does not have
an SSL provider for .net yet, so https wont work in the .net assembly yet.


--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"


ELKNews - Get your free copy at http://www.atozedsoftware.com
 
You probably downloaded IP*Works! instead of IP*Works! SSL. IP*Works!
SSL has support for HTTPS, FTPS, SMTPS, and many other secure Internet
protocols.

-Eric
 
(e-mail address removed) (Eric M.) wrote in
You probably downloaded IP*Works! instead of IP*Works! SSL. IP*Works!
SSL has support for HTTPS, FTPS, SMTPS, and many other secure Internet
protocols.

Thanks Eric,

Do you use this IP*Works stuff? I was surprised how weak the documentation
was, and thought that I would not use their components. Also, I didn't see
any commmunity area to discuss the products - something that is available
from virtually every other component company we have used.

Masa
 
Sure, I use it every day - I work at /n software :).

We have had a number of compliments about our documentation, though I
realize it is kind of technical. Combined with the dozens of sample
applications provided in the package you should be able to get up and
running very quickly. With our new IP*Works! V6 we have tried to work
on making the documentation a lot easier to follow.

As for a community - that's why I'm writing you now ;). We don't
substitute community for technical support. We have a dedicated
support staff that provides free email technical support for the life
of your product.

-Eric
 
Back
Top