• exec/load/http.js

    From deuce@VERT to CVS commit on Monday, April 02, 2018 08:29:00
    exec/load http.js 1.41 1.42
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv10085

    Modified Files:
    http.js
    Log Message:
    When sending a request and the socket is still open, close it.
    This prevents leaving all sockets open until the script exits. It would
    be better to reuse the existing socket when it's already connected to the
    right place, but this is easier for now.




    ---
    Synchronet Vertrauen Home of Synchronet [vert/cvs/bbs].synchro.net
  • From deuce@VERT to CVS commit on Tuesday, August 06, 2019 04:13:22
    exec/load http.js 1.43 1.44
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv8343

    Modified Files:
    http.js
    Log Message:
    Use ConnectedSocket() to get IPv6 goodness.




    ---
    Synchronet Vertrauen Home of Synchronet [vert/cvs/bbs].synchro.net
  • From echicken@VERT to CVS commit on Wednesday, July 22, 2020 04:26:28
    exec/load http.js 1.45 1.46
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv23764

    Modified Files:
    http.js
    Log Message:
    For GET requests, follow 301, 302, 307, and 308 redirects to the first
    Location given in the response header, if present. Not enabled by
    default, so turn it on like so:

    var h = new HTTPRequest();
    h.follow_redirects = true;

    Should probably add "too many redirects" protection, since this could
    turn into an eternal game of HTTP ping-pong.



    ---
    Synchronet Vertrauen Home of Synchronet [vert/cvs/bbs].synchro.net
  • From echicken@VERT to CVS commit on Wednesday, July 22, 2020 04:31:48
    exec/load http.js 1.46 1.47
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv24583

    Modified Files:
    http.js
    Log Message:
    Shitty hack on previous commit.
    Amended HTTPRequest.follow_redirects to be a number instead of boolean.

    var h = new HTTPRequest();
    h.follow_redirects = 1; // We'll follow this many redirects



    ---
    Synchronet Vertrauen Home of Synchronet [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to sbbs/master on Thursday, August 27, 2020 03:36:37
    https://gitlab.synchro.net/sbbs/sbbs/-/commit/39f15ed27aaa1d54a06dd5a6
    Modified Files:
    exec/load/http.js
    Log Message:
    Better error reporting to help root-caues Nelgin's problem using bccnews.js

    <nelgin> !JavaScript : uncaught exception: Unknown scheme! 'undefined'
    <nelgin> (error with no line number) is the worst.

    ---
    Synchronet Vertrauen Home of Synchronet [vert/cvs/bbs].synchro.net
  • From echicken@VERT to Git commit to main/sbbs/master on Friday, January 22, 2021 18:50:35
    https://gitlab.synchro.net/main/sbbs/-/commit/d802a7c951555b1dc7135a3c
    Modified Files:
    exec/load/http.js
    Log Message:
    Sub in original scheme://host[:port] if absent from Location on redirect.

    ---
    Synchronet Vertrauen Home of Synchronet [vert/cvs/bbs].synchro.net