Sortarius
10-03-2001, 07:34 PM
Sorry for vague post.
Basically, this lil program I wrote, can someone think of a better way to do it? In essence, it goes to a web page that you specify and pulls down the html code, then searches through the html to find the date. I currently am using this to look at yahoo.com, but in the end it will be to find the date on a FedEx tracking item.
Thanks,
Sort
quos deus vult peredere prius dementat
Well this is the URL for the fedex tracking site:
http://www.fedex.com/cgi-bin/tracking?tracknumbers=dfafdadfafdas&action=track&language=english&cntry_code=us
you could ask for "tracknumbers" on your form and just replace it in the URL and use an Inet control(I am hoping in a post before this you didnt say "I dont want to use an Inet control" if so tell me and I will delete this post) to call up the URL with the embedded tracking number and then you can get the html source.(This way you dont have to deal with HTTP handshaking :) )
Regards
jcd
Sortarius
10-04-2001, 07:52 AM
Yea bud, this is basically just a very small snippit of a program that a friend is building that he couldnt figure out how to pull the source code and then search through the text to pull the date to place in a text box on his form. Strange the things we sometimes can seem to do that are so complicated and yet cant do the easy stuff. <g>
Can you tell me more about how to not "deal with http handshaking"? Not sure whatcha meant. The reason I did what I did on the form was basically cause that was the only way that I knew how to get it to work. hehe If theres a better way...im all for it.
Sort
quos deus vult peredere prius dementat
okay here is what I did to make a copy of html pages for backup purposes...you have to put a Inet control which is a part of the "Microsoft Internet Transfer Control 6.0" component...and then it is as easy as doing something like this:
strHtml = Inet1.OpenURL("[the url]")
then you could search strHtml, write it to a file(then you would have to translate the line feeds),etc....
regards
jcd
Sortarius
10-04-2001, 10:31 AM
Thanks man, Ill give it a shot.
Sort
quos deus vult peredere prius dementat
no problem...I actually asked the same type of question and PWNettle(among others...I believe) answered it...so I cant take credit for this.
Regards
jcd
Sortarius
10-04-2001, 02:14 PM
yea that worked much better. The winsock contro...for some strange reason...began to download the page code, then stopped. Did this nearly every time. Prob something simple I am doing, but who knows. This worked much better. Now all I have to do is find out where I misplaced my code sniplet of how to search through text to find a specific phrase, then i will be set. <loopygrin>
Sort
quos deus vult peredere prius dementat