Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Login to rs collectors account
#1
https://ssl.rapidshare.com/cgi-bin/collectorszone.cgi

do you have an idea why my code does not login?
str domain="https://ssl.rapidshare.com"
;https://ssl.rapidshare.com/cgi-bin/collectorszone.cgi
ARRAY(POSTFIELD) a.create(2); int i
a[i].name="username"; a[i].value="USERNAME"; a[i].isfile=0; i+1
a[i].name="password"; a[i].value="PASSWORD"; a[i].isfile=0; i+1
Http h.Connect(domain); str r
if(!h.PostFormData("/cgi-bin/collectorszone.cgi" a r)) end "failed"
out r
r.setfile("c:\test.htm")
run "c:\test.htm"

thanks
pi
#2
their form has only two post fields.

Elements
Index Name Type Size
0 username text 16
1 password password 16

and a submit button with value Login
pi
#3
with Connect should not be used protocol.

Macro Macro1275
Code:
Copy      Help
str domain="ssl.rapidshare.com"
;https://ssl.rapidshare.com/cgi-bin/collectorszone.cgi
ARRAY(POSTFIELD) a.create(2); int i
a[i].name="username"; a[i].value="USERNAME"; a[i].isfile=0; i+1
a[i].name="password"; a[i].value="PASSWORD"; a[i].isfile=0; i+1
Http h.Connect(domain "" "" 443); str r
if(!h.PostFormData("/cgi-bin/collectorszone.cgi" a r)) end "failed"
out r
r.setfile("c:\test.htm")
run "c:\test.htm"

Not tested.
#4
i get error 'The server connection was reset.'
pi
#5
I don't know the reason. Sending form data often does not work. Then automate IE.


Forum Jump:


Users browsing this thread: 1 Guest(s)