Hot Topic (More than 10 Replies) Web Interaction commands (Read 1462 times)
Bharat_Naik
Senior Member
Members
*****
Offline


Ever ready to learn and
share

Posts: 1202
Location: Chicago,  Illinois
Joined: Dec 16th, 2003
Web Interaction commands
Jul 31st, 2008 at 7:07pm
Print Post Print Post  
Hi Erika,

You had demonstrated web-interactiing application, that goes on UPS website and post the tracker# of the shipment in the web form and get the response back in the application (Using HTTPGethtml ( ) and HTTPPosthtml ( )  commands). Is that application is available for review? What if the website first authenticate user by asking UserName and Password before one can even goto such form? Thanks.

Bharat
  
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Web Interaction commands
Reply #1 - Jul 31st, 2008 at 7:33pm
Print Post Print Post  
Here's the application. The test tracking number I was using is no longer valid though. You'll have to find a current tracking number to play with.

Quote:
What if the website first authenticate user by asking UserName and Password before one can even goto such form?

The SBasic commands can't get through authentication. It will want to affect a browser setting. We have no place to keep the setting and no way to supply it back to the website on request.
  

track.zip (Attachment deleted)

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
Bharat_Naik
Senior Member
Members
*****
Offline


Ever ready to learn and
share

Posts: 1202
Location: Chicago,  Illinois
Joined: Dec 16th, 2003
Re: Web Interaction commands
Reply #2 - Jul 31st, 2008 at 7:39pm
Print Post Print Post  
Thanks Erika. The authentication request ( username:    password:  ) is itself is a form, isn't it? Why can it not pass it on by just posting the Username and Password?
  
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Web Interaction commands
Reply #3 - Jul 31st, 2008 at 7:44pm
Print Post Print Post  
Bharat_Naik wrote on Jul 31st, 2008 at 7:39pm:
Thanks Erika. The authentication request ( username:    password:  ) is itself is a form, isn't it? Why can it not pass it on by just posting the Username and Password?

If you are talking about the box that pops up with the title Authentication Required and asks for a user name and password then, no, it is not an ordinary form and it does not use HTTP POST to authenticate you.
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
Bharat_Naik
Senior Member
Members
*****
Offline


Ever ready to learn and
share

Posts: 1202
Location: Chicago,  Illinois
Joined: Dec 16th, 2003
Re: Web Interaction commands
Reply #4 - Jul 31st, 2008 at 7:56pm
Print Post Print Post  
Thanks for imparting insight into this topic. Any idea, how can I overcome it? Using Script and passing it on using @RedirectProcess ( ) ? I do not know myself much about scripting languages such as Perl, phython, PHP or Java but I believe, my friends can help me out with that if SBasic could handle it some kind of way. Thanks.
  
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Web Interaction commands
Reply #5 - Jul 31st, 2008 at 8:11pm
Print Post Print Post  
It might be doable. If you have a script written that dumps the responses to a text file, SBasic can call the script and pick up the resulting text file. It may be possible to do this through SBasic directly by digging into the HTTP protocol and using the NetworkRead/Write commands. I can't be sure though without trying it and seeing what's in the way.
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
Bharat_Naik
Senior Member
Members
*****
Offline


Ever ready to learn and
share

Posts: 1202
Location: Chicago,  Illinois
Joined: Dec 16th, 2003
Re: Web Interaction commands
Reply #6 - Jul 31st, 2008 at 8:26pm
Print Post Print Post  
Thanks Erika. I believe, people will be interacting with web more and more as time goes by and if Sesame facilitates such functionality will be a great plus and an icing on the cake.
  
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Web Interaction commands
Reply #7 - Jul 31st, 2008 at 8:33pm
Print Post Print Post  
We don't disagree that web interaction is increasingly important. We may consider adding authentication headers to these commands at some point, but that only solves part of the problem. You may find that more and more websites are designed to specifically prevent themselves from being accessed by external scripts. They don't want people using automated methods to access their forms and pages except via SDKs that they provide. We'll do what we can to provide you with as many tools as we are able, but you may find the websites themselves taking steps to block you.
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
Bharat_Naik
Senior Member
Members
*****
Offline


Ever ready to learn and
share

Posts: 1202
Location: Chicago,  Illinois
Joined: Dec 16th, 2003
Re: Web Interaction commands
Reply #8 - Jul 31st, 2008 at 9:02pm
Print Post Print Post  
Yes, we have been seeing site asking for user input in the form of giving back string what is being displayed on the screen in the form of image that computer cannot read easily. Thanks Erika,  for very insight provoking discussion and help.
  
Back to top
 
IP Logged
 
Bob_Hansen
Senior Member
Members
*****
Offline


WOW, They have the Internet
on computers now!

Posts: 1861
Location: Salem, NH
Joined: Nov 24th, 2002
Re: Web Interaction commands
Reply #9 - Aug 1st, 2008 at 1:50am
Print Post Print Post  
Hello Bharat....

This sounds like another utility to interact with Sesame.

Are you looking for an automated response to fill in name and password on a popup window?
If you can provide some specifics for me to test, I may be able to help you out again.
  



Bob Hansen
Sesame Database Manager Professional
Sensible Solutions Inc.
Salem, NH
603-898-8223
Skype ID = sensiblesolutions
Back to top
IP Logged
 
Bharat_Naik
Senior Member
Members
*****
Offline


Ever ready to learn and
share

Posts: 1202
Location: Chicago,  Illinois
Joined: Dec 16th, 2003
Re: Web Interaction commands
Reply #10 - Aug 1st, 2008 at 3:16pm
Print Post Print Post  
Thanks Bob. The information about the sites in your mail box.

Bharat
  
Back to top
 
IP Logged