Pop-Up Thingie

The Horizon BBS
  • Home
  • Forum
  • Files
  • Register
  • Log in

  1. Forum
  2. DOVE-Net
  3. Synchronet Sysops
  • http.js not working with marketwatch urls

    From Nigel Reed@VERT to GitLab issue in main/sbbs on Mon Feb 15 23:18:43 2021
    open https://gitlab.synchro.net/main/sbbs/-/issues/220

    Sample URL: http://www.marketwatch.com/news/story.asp?guid=%7B21005575-02D4-D4B5-4572-D28A72DE3461%7D&siteid=rss&rss=1

    Produced 301
    Location: https://www.marketwatch.com/news/story.asp?guid=%7B21005575-02D4-D4B5-4572-D28A72DE3461%7D&siteid=rss&rss=1

    Which produced 301
    location: /story/guid/21005575-02d4-d4b5-4572-d28a72de3461?siteid=rss&rss=1

    Which produced 301
    location: http://www.marketwatch.com/story/the-new-york-stock-exchange-president-says-the-stock-market-is-not-a-casino-heres-what-academic-research-says-11613396805

    which produced 301
    Location: https://www.marketwatch.com/story/the-new-york-stock-exchange-president-says-the-stock-market-is-not-a-casino-heres-what-academic-research-says-11613396805

    Which finally gives me a 200.

    The code I'm using is

    var req = new HTTPRequest();
    req.follow_redirects=10;
    response = req.Get(url);
    writeln("RC: "+req.response_code);
    writeln("RS: "+req.response_status);
    writeln(response);

    and RC is giving me a 404 and can't figure why.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to GitLab note in main/sbbs on Mon Feb 15 23:28:59 2021
    https://gitlab.synchro.net/main/sbbs/-/issues/220#note_1598

    How are the URLs "producing" 301s if not via http.js? The description says it ends up with a 200, but then you say you get a 404... it's certainly not both.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Nigel Reed@VERT to GitLab note in main/sbbs on Mon Feb 15 23:34:40 2021
    https://gitlab.synchro.net/main/sbbs/-/issues/220#note_1599

    When I run the script the output from the section above is:

    Working on http://www.marketwatch.com/news/story.asp?guid=%7B0F3C2883-C89D-472A-9721-7859431504DF%7D&siteid=rss&rss=1
    RC: 404
    RS: undefined


    So, you tell me. If I manually go through the redirects, I get to the right place. If I use my script that eventually uses http.js then I get a 404.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to GitLab note in main/sbbs on Mon Feb 15 23:36:35 2021
    https://gitlab.synchro.net/main/sbbs/-/issues/220#note_1600

    So how are you getting 301s? How are you "manually" going through the requests?

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Nigel Reed@VERT to GitLab note in main/sbbs on Mon Feb 15 23:41:35 2021
    https://gitlab.synchro.net/main/sbbs/-/issues/220#note_1601

    Using the browser debugger. ![image](/uploads/6c729cf0b48da9fed5437d398d6688f2/image.png)

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to GitLab note in main/sbbs on Mon Feb 15 23:50:01 2021
    https://gitlab.synchro.net/main/sbbs/-/issues/220#note_1602

    So, a bit of feedback... in the description, tell us what is happening. If you want to add colour, make it clear what you're actually doing.

    Also, it would be nice if when you include a script it is complete, works, and shows the problem (ie: load http.js and sets the url).

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to GitLab issue in main/sbbs on Mon Feb 15 23:51:06 2021
    close https://gitlab.synchro.net/main/sbbs/-/issues/220

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • Who's Online

  • Recent Visitors

    • Dave Drum
      Thu Jun 12 19:26:59 2025
      from Springfield, Illinois via Telnet
    • Dave Drum
      Thu Jun 12 19:11:17 2025
      from Springfield, Illinois via Telnet
    • Dave Drum
      Thu Jun 12 18:55:19 2025
      from Springfield, Illinois via Telnet
    • Genalb
      Thu Jun 12 07:15:59 2025
      from Slc, Utah via Telnet
  • System Info

    Sysop: Chris Crash
    Location: Huntington Beach, CA.
    Users: 615
    Nodes: 8 (0 / 8)
    Uptime: 57:39:21
    Calls: 10,874
    Files: 5
    Messages: 517,944

© The Horizon BBS, 2025