forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Help with VDSIPP.DLL

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
marcelo
Contributor
Contributor


Joined: 10 May 2008
Posts: 155

PostPosted: Tue Jul 22, 2008 3:07 am    Post subject: Help with VDSIPP.DLL Reply with quote

Hi, im trying the VDSIPP.DLL and works perfect but i have only one problem.
My program starts an check for a internet connection, if there is one it attempts to save a webpage to a TXT file.
If this page is accessible there is no problem, but if not my prog hangs...
This is my example prog:

INTERNET HTTP,CREATE,1
INTERNET HTTP,THREADS,1,OFF
INTERNET HTTP,PROTOCOL,1,1
INTERNET HTTP,USERAGENT,1,"Example"
INTERNET HTTP,DOWNLOAD,1,http://www.mypage.com,page.txt
INTERNET HTTP,DESTROY,1

How can i wait X time for the mypage.com to be accessable and if not, attempt with mypage2 for X time again?

Is this possible?

Thanks a lot...

Marcelo.
Back to top
View user's profile Send private message
marcelo
Contributor
Contributor


Joined: 10 May 2008
Posts: 155

PostPosted: Tue Jul 22, 2008 3:35 am    Post subject: Reply with quote

I believe that i need to set a TIMEOUT time between a page and the other...
but how?
Back to top
View user's profile Send private message
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1565

PostPosted: Tue Jul 22, 2008 2:12 pm    Post subject: Reply with quote

Why are you using DOWNLOAD? use the GET command to retrieve the text and check the text in your list box. I believe the GET command has a built in timeout, while DOWNLOAD waits indefinately for more data to come with no timeout - the only way to stop a DOWNLOAD request is to use STOP.
Back to top
View user's profile Send private message
marcelo
Contributor
Contributor


Joined: 10 May 2008
Posts: 155

PostPosted: Wed Jul 23, 2008 3:36 am    Post subject: Reply with quote

Thanks a lot!! I will try GET instead of DOWNLOAD. Let see if i discover how to switch to another page if the first one is unavailable or timeout is big....

Thanks again...

Marcelo.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group