Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 8 of 8
  1. #1
    Join Date
    Feb 2005
    Location
    Germany
    Posts
    135

    HTTP.TestConnection Question

    Hello,
    I want build a app which repeat HTTP.TestConnection until the connection is true. Thx for help.

    Sorry for bad english.

  2. #2
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959
    use the page timer, put your test connection code in the On Timer event. Stop the timer when it returns true.

  3. #3
    Join Date
    Feb 2005
    Location
    Germany
    Posts
    135
    Ok, Thx, I'll try it and an other question is, how can I enter the AuthData by HTTP.Download or how must I enter this data?

  4. #4
    Join Date
    Sep 2002
    Location
    Sol 3
    Posts
    3,160
    AuthData is a table. You can define the table with your parameters and then use it in the HTTP.Download action

    AuthData
    (table) A table containing basic HTTP authentication information that can be used to gain access to the file. (This parameter is optional. If the download does not require HTTP authentication, just leave this parameter blank.) The table is indexed by the following keys:

    KEY TYPE DESCRIPTION
    UserName - string - The user name to be used during HTTP authentication.
    Password - string - The password to be used during HTTP authentication.


    Code:
    tAuthData = {UserName = "Harry", Password = "Potter"};
    HTTP.Download("http://www.hogwarts.com/downloads/potionsbook.zip", _TempFolder.."\\potionsbook.zip", MODE_BINARY, 20, 80, tAuthData, nil, nil);
    
    --or you can define it in the string
    HTTP.Download("http://www.hogwarts.com/downloads/potionsbook.zip", _TempFolder.."\\potionsbook.zip", MODE_BINARY, 20, 80, {UserName = "Harry", Password = "Potter"}, nil, nil);
    Same difference

    Tigg
    TJ-Tigger
    "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
    "Draco dormiens nunquam titillandus."
    Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

  5. #5
    Join Date
    Feb 2005
    Location
    Germany
    Posts
    135
    OK, great THX TJ_Tigger

  6. #6
    Join Date
    Feb 2006
    Posts
    12

    hi

    hi worm,
    would u pls give me an example for this :
    Quote Originally Posted by Worm
    use the page timer, put your test connection code in the On Timer event. Stop the timer when it returns true.
    thanks

  7. #7
    Join Date
    Oct 2005
    Location
    MI
    Posts
    524
    Quote Originally Posted by pooriapanahi
    hi worm,
    would u pls give me an example for this :


    thanks

    On the page in your project where you want to test the connection:

    On Show Event
    Code:
    if not HTTP.GetConnectionState().Connected then
         Page.StartTimer(1000);
    end
    On Timer Event
    Code:
    if HTTP.GetConnectionState().Connected then
         Page.StopTimer();
    end
    Yeah right. Who's the only one here who knows the illegal ninja moves from the government?

    ()))))))))o)))))))==============================================

  8. #8
    Join Date
    Oct 2005
    Location
    MI
    Posts
    524

    oops!!!

    I just gave you an AMS6 answer to you AMS5 question. My apologies if my reply is not relevant.
    Yeah right. Who's the only one here who knows the illegal ninja moves from the government?

    ()))))))))o)))))))==============================================

Similar Threads

  1. Question: reg question
    By mjheijster in forum AutoPlay Media Studio 5.0
    Replies: 3
    Last Post: 07-22-2005, 04:01 AM
  2. Basic Flash question
    By aae991 in forum AutoPlay Media Studio 5.0
    Replies: 2
    Last Post: 03-09-2005, 09:46 PM
  3. Question on VB and AMS5
    By Martin_SBT in forum AutoPlay Media Studio 5.0
    Replies: 1
    Last Post: 12-11-2003, 08:22 AM
  4. question about sound mp3
    By Rapido78840 in forum AutoPlay Media Studio 4.0
    Replies: 4
    Last Post: 10-10-2003, 11:19 AM
  5. ** Question for all AutoPlay Menu Studio Users **
    By Ted in forum AutoPlay Menu Studio 3.0
    Replies: 4
    Last Post: 10-09-2000, 09:09 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts