vbDan
Aug 9th, 2000, 09:26 AM
I want my application to log-on to an ASP page and after
having done that send some data to another ASP page.
To log-on I need to send this URL:
http://www.mtnsms.com/session.asp?name=Login&username=somename&password=someword
And after having logged on I need to send this data
(to the newly given URL):
http://www1.mtnsms.com/sms/xsms.asp?frompage=login&name=newMsg&smsToNumbers=+0123456789&smsMessage=somemessage
Now, what I don't understand is that when I do this using the Internet Explorer Address Bar; this actually works.
But when I send the exact same data using Visual Basic (winsock API):
GET http://www.mtnsms.com/session.asp?name=Login&username=somename&password=someword
and after that:
GET http://www1.mtnsms.com/sms/xsms.asp?frompage=login&name=newMsg&smsToNumbers=+0123456789&smsMessage=somemessage
It doesn't work?
I get redirected to the default page saying that the last page required me to log-on (while I do get an object moved message and a new location after having sent my first string)?
Could somebody tell me what I am doing wrong? (And how to solve it?)
Does it have something to do with cookies? Or perhaps that my socket gets disconnected after I received the first page?
Any help would be appreciated!
having done that send some data to another ASP page.
To log-on I need to send this URL:
http://www.mtnsms.com/session.asp?name=Login&username=somename&password=someword
And after having logged on I need to send this data
(to the newly given URL):
http://www1.mtnsms.com/sms/xsms.asp?frompage=login&name=newMsg&smsToNumbers=+0123456789&smsMessage=somemessage
Now, what I don't understand is that when I do this using the Internet Explorer Address Bar; this actually works.
But when I send the exact same data using Visual Basic (winsock API):
GET http://www.mtnsms.com/session.asp?name=Login&username=somename&password=someword
and after that:
GET http://www1.mtnsms.com/sms/xsms.asp?frompage=login&name=newMsg&smsToNumbers=+0123456789&smsMessage=somemessage
It doesn't work?
I get redirected to the default page saying that the last page required me to log-on (while I do get an object moved message and a new location after having sent my first string)?
Could somebody tell me what I am doing wrong? (And how to solve it?)
Does it have something to do with cookies? Or perhaps that my socket gets disconnected after I received the first page?
Any help would be appreciated!