Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • Synchronet Synchronet
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 224
    • Issues 224
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

This GitLab instance has migrated as of Nov-5-2022 to a new server: hardware, OS, SSH key

The v3.20a development branch has now been merged to the master branch. Sysops upgrading from earlier versions must run 'jsexec update'

  • MainMain
  • SynchronetSynchronet
  • Issues
  • #220
Closed
Open
Issue created Feb 15, 2021 by Nigel Reed@nelginDeveloper

http.js not working with marketwatch urls

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.

Assignee
Assign to
Time tracking