Results 1 to 6 of 6

Thread: Help Getting a webpage

  1. #1
    Join Date
    Jan 2012
    Location
    Netherlands
    Posts
    76
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default Closed: Help Getting a webpage

    Hello,

    I used GDrive to upload a file for version checker.
    I found the view link of the docment. ( if i get this to work i'll tell how ).
    The link is:

    > Click me to view <

    The output for me is:
    "B1.0". on the webpage there is no HTML, JAVA or w/e stuff just "B1.0"

    I cant get the output with:
    Simba Code:
    program getwebpagevariable ;
    {$DEFINE SMART}
    {$i srl/srl.simba}

    var
    version, webpage : string ;
    begin

    cleardebug ;
    webpage := 'https://doc-0o-9c-docs.googleusercontent.com/docs/securesc/ha0ro937gcuc7l7deffksulhg5h7mbp1/c7g3rc283fp9ul5g0k0meogk5phacja8/1354082400000/02543824905479969343/*/0B9c4dt86DWJSanp3c2pQUzZaR2c' ;
    GetPage( webpage ) ;

    OpenWebPage( webpage ) ;

    Writeln( '*****' ) ;
    Writeln( version ) ;
    Writeln( '*****' ) ;

    end.

    I could not get the output.

    When using XAMPP ( own server on pc, offline )
    Getpage works with HTTP and HTTPS:
    version := GetPage( 'http://localhost/downloads/Version.txt' ) ;
    version := GetPage( 'http://localhost/downloads/Version' ) ;
    version := GetPage( 'https://localhost/downloads/Version.txt' ) ;
    version := GetPage( 'https://localhost/downloads/Version' ) ;

    Could it be the "*" in the webpage?

    Any suggestions?
    Last edited by kazhual; 11-28-2012 at 10:59 AM. Reason: Uploaded file cannot be edited

  2. #2
    Join Date
    Jan 2012
    Location
    Netherlands
    Posts
    76
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    Last edited by kazhual; 11-28-2012 at 09:25 AM.

  3. #3
    Join Date
    Dec 2011
    Location
    Holland
    Posts
    545
    Mentioned
    0 Post(s)
    Quoted
    19 Post(s)

    Default

    http://yjmepg.bn1.livefilestore.com/...pg/Version.txt
    That does work, but your first link can't be accessed without https

  4. #4
    Join Date
    Jan 2012
    Location
    Netherlands
    Posts
    76
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    Still the last one fails..

    Simba Code:
    program getwebpagevariable ;
    {$DEFINE SMART}
    {$i srl/srl.simba}

    var
    version, version2, webpage : string ;
    myclient : integer ;
    begin

    cleardebug ;
    webpage := 'http://pwfgsa.bn1.livefilestore.com/y1mPKIs6zE0CLN6e_Tw4xYLZ4Zdn4Z-3R7WgxHVXPkf60fgsrvfUw1AuDMsemV6XLX3J5sVxbmtNKtjQS6GXjxCZb_g9eTY8izn/Version.txt' ;
    myclient :=  InitializeHTTPClient( True, False ) ;
    version := GetHTTPPage( myclient, webpage ) ;
    version2 := getpage( webpage ) ;

    // OpenWebPage( webpage ) ;


    Writeln( '*****' ) ;
    Writeln( version ) ;
    Writeln( version2 ) ;
    Writeln( '*****' ) ;

    end.

    modified: InitializeHTTPClient, with any solution ( true true, true false .... etc )
    Last edited by kazhual; 11-28-2012 at 09:25 AM.

  5. #5
    Join Date
    Jan 2012
    Location
    Netherlands
    Posts
    76
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

  6. #6
    Join Date
    Jan 2012
    Posts
    1,104
    Mentioned
    18 Post(s)
    Quoted
    211 Post(s)

    Default

    Just try html instead of txt.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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