Pop-Up Thingie

The Gate BBS
  • Home
  • Forum
  • Files
  • Games
  • More
    • User List
  • Register
  • Log in

  1. Forum
  2. FidoNet
  3. SYNC SYSOPS
  • http.js not working with marketwatch urls

    From Nigel Reed@1:103/705 to GitLab issue in main/sbbs on Monday, February 15, 2021 15:18:43
    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=1Produced 301Location: https://www.marketwatch.com/news/story.asp?guid=%7B21005575-02D4-D4B5-4572-D28A72DE3461%7D&siteid=rss&rss=1Which produced 301location: /story/guid/21005575-02d4-d4b5-4572-d28a72de3461?siteid=rss&rss=1Which produced 301location: http://www.marketwatch.com/story/the-new-york-stock-exchange-president-says-the-stock-market-is-not-a-casino-heres-what-academic-research-says-11613396805which produced 301Location: https://www.marketwatch.com/story/the-new-york-stock-exchange-president-says-the-stock-market-is-not-a-casino-heres-what-academic-research-says-11613396805Which 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.
    --- SBBSecho 3.12-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to GitLab note in main/sbbs on Monday, February 15, 2021 15:28:59
    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.
    --- SBBSecho 3.12-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Nigel Reed@1:103/705 to GitLab note in main/sbbs on Monday, February 15, 2021 15:34:40
    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=1RC: 404RS: undefinedSo, 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.
    --- SBBSecho 3.12-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to GitLab note in main/sbbs on Monday, February 15, 2021 15:36:35
    https://gitlab.synchro.net/main/sbbs/-/issues/220#note_1600

    So how are you getting 301s? How are you "manually" going through the requests?
    --- SBBSecho 3.12-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Nigel Reed@1:103/705 to GitLab note in main/sbbs on Monday, February 15, 2021 15:41:35
    https://gitlab.synchro.net/main/sbbs/-/issues/220#note_1601

    Using the browser debugger.![image](/uploads/6c729cf0b48da9fed5437d398d6688f2/image.png)
    --- SBBSecho 3.12-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to GitLab note in main/sbbs on Monday, February 15, 2021 15:50:01
    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).
    --- SBBSecho 3.12-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to GitLab issue in main/sbbs on Monday, February 15, 2021 15:51:06
    close https://gitlab.synchro.net/main/sbbs/-/issues/220
    --- SBBSecho 3.12-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • Who's Online

  • Recent Visitors

    • Dr. What
      Sunday, July 06, 2025 09:20:15
      from Rockford, MI via Telnet
  • System Info

    Sysop: Gate Keeper
    Location: Shelby, NC
    Users: 792
    Nodes: 20 (0 / 20)
    Uptime: 83:38:13
    Calls: 12,361
    Calls today: 1
    Files: 5,294
    D/L today: 19 files
    (4,301K bytes)
    Messages: 576,601

© The Gate BBS, 2025