• exec/load/http.js

    From rswindell@1:103/705 to CVS commit on Tue Feb 6 17:31:37 2018
    exec/load http.js 1.30 1.31
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv4097

    Modified Files:
    http.js
    Log Message:
    Use non-blocking operations. I've seen disconnected terminal server users
    stuck in an infinite loop in socket.recv(), called from here, trying read
    data from an HTTPS connection.


    --- SBBSecho 3.03-Win32
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From rswindell@1:103/705 to CVS commit on Tue Feb 6 18:25:34 2018
    exec/load http.js 1.31 1.32
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv9482

    Modified Files:
    http.js
    Log Message:
    Revert the previous commit. SyncWX failed (http requests) with the socket created as non-blocking. :-(
    This whole script would need to be updated to support non-blocking sockets
    it looks like.


    --- SBBSecho 3.03-Win32
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From deuce@1:103/705 to CVS commit on Sun Feb 25 23:43:32 2018
    exec/load http.js 1.34 1.35
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv1499

    Modified Files:
    http.js
    Log Message:
    prototypify HTTP object. No need for everyone to have their own private
    copies of all the methods.



    --- SBBSecho 3.03-Win32
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From deuce@1:103/705 to CVS commit on Sun Feb 25 23:50:19 2018
    exec/load http.js 1.35 1.36
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv2148

    Modified Files:
    http.js
    Log Message:
    SyncJSLint found a big in extra_headers handling. Fix that and everything
    else it found.



    --- SBBSecho 3.03-Win32
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From deuce@1:103/705 to CVS commit on Sun Feb 25 23:52:56 2018
    exec/load http.js 1.36 1.37
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv2439

    Modified Files:
    http.js
    Log Message:
    Allow specifying the content-type in a Post().



    --- SBBSecho 3.03-Win32
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From deuce@1:103/705 to CVS commit on Mon Feb 26 16:04:31 2018
    exec/load http.js 1.37 1.38
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv4190/load

    Modified Files:
    http.js
    Log Message:
    Simple support for overriding User-Agent string.


    --- SBBSecho 3.03-Win32
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From deuce@1:103/705 to CVS commit on Mon Feb 26 16:06:28 2018
    exec/load http.js 1.38 1.39
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv4393/load

    Modified Files:
    http.js
    Log Message:
    thus -> this


    --- SBBSecho 3.03-Win32
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From echicken@1:103/705 to CVS commit on Thu Mar 15 11:28:13 2018
    exec/load http.js 1.39 1.40
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv22671

    Modified Files:
    http.js
    Log Message:
    That 'this' was not the 'this' that your 'self' was looking for there then.
    May resolve the error reported by Bill McGarrity (this.extra_headers is undefined).


    --- SBBSecho 3.03-Win32
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From echicken@1:103/705 to CVS commit on Thu Mar 15 12:22:59 2018
    exec/load http.js 1.40 1.41
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv29446

    Modified Files:
    http.js
    Log Message:
    Ditch the 'self' stuff and give forEach a thisArg instead.


    --- SBBSecho 3.03-Win32
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From deuce@1:103/705 to CVS commit on Mon Apr 2 01:29:31 2018
    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.



    --- SBBSecho 3.04-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From rswindell@1:103/705 to CVS commit on Wed Feb 20 17:49:37 2019
    exec/load http.js 1.42 1.43
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv15699

    Modified Files:
    http.js
    Log Message:
    Improve the details of the "Unable to connect" error exception.


    --- SBBSecho 3.06-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From deuce@1:103/705 to CVS commit on Mon Aug 5 21:13:22 2019
    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.



    --- SBBSecho 3.08-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From rswindell@1:103/705 to CVS commit on Sun Apr 5 16:35:01 2020
    exec/load http.js 1.44 1.45
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv20352

    Modified Files:
    http.js
    Log Message:
    Add a status definition with the most common request status codes since a caller of HTTPRequest.Get() needs to compare against these constants
    to know if the request was successful (e.g. ok = 200).

    --- SBBSecho 3.10-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From echicken@1:103/705 to CVS commit on Tue Jul 21 21:26:28 2020
    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.


    --- SBBSecho 3.11-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From echicken@1:103/705 to CVS commit on Tue Jul 21 21:31:48 2020
    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


    --- SBBSecho 3.11-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to Git commit to sbbs/master on Wed Aug 26 20:36:37 2020
    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.
    --- SBBSecho 3.11-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From echicken@1:103/705 to Git commit to main/sbbs/master on Fri Jan 22 10:50:35 2021
    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.
    --- SBBSecho 3.12-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Mon Feb 15 15:51:05 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/aeb26cba8747e3adeca26d39
    Modified Files:
    exec/load/http.js
    Log Message:
    Parse redirects the easy way.I'm not sure what echicken was trying here, but apparently it doesn'twork for nelgin.Likely fixes #220.
    --- SBBSecho 3.12-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Mon Feb 15 15:54:07 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/5379321a722821aab964b2ab
    Modified Files:
    exec/load/http.js
    Log Message:
    Less tired.
    --- SBBSecho 3.12-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Mon Feb 15 19:01:21 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/69dc58973f60f0caf9added6
    Modified Files:
    exec/load/http.js
    Log Message:
    Parse redirects the easy way.I'm not sure what echicken was trying here, but apparently it doesn'twork for nelgin.Likely fixes #220.
    --- SBBSecho 3.12-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Mon Feb 15 19:01:21 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/b9c69894964b2c6ec7d6a4a5
    Modified Files:
    exec/load/http.js
    Log Message:
    Less tired.
    --- SBBSecho 3.12-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Mon Feb 15 19:14:16 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/21a3882f8c03fc4426088db4
    Modified Files:
    exec/load/http.js
    Log Message:
    Parse redirects the easy way.I'm not sure what echicken was trying here, but apparently it doesn'twork for nelgin.Likely fixes #220.
    --- SBBSecho 3.12-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Mon Feb 15 19:14:16 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/8311170c1b66bdda0adfe71f
    Modified Files:
    exec/load/http.js
    Log Message:
    Less tired.
    --- SBBSecho 3.12-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Mon Feb 15 19:31:37 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/dfd7e11c58b1fd3b53c2c0dc
    Modified Files:
    exec/load/http.js
    Log Message:
    Parse redirects the easy way.I'm not sure what echicken was trying here, but apparently it doesn'twork for nelgin.Likely fixes #220.
    --- SBBSecho 3.12-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Mon Feb 15 19:31:37 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/2cbf30304429df5ebee5cf09
    Modified Files:
    exec/load/http.js
    Log Message:
    Less tired.
    --- SBBSecho 3.12-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Debian Linux)@1:103/705 to Git commit to main/sbbs/master on Sun May 7 18:11:16 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/088b87a4b8c8e2e43a88af2d
    Modified Files:
    exec/load/http.js
    Log Message:
    Support recv_timeout argument to HTTPRequest constructor, default: 60 (seconds)Use this time-out value for calls to recv() and recvline() rather than
    a mix ofdefault and hard-coded values. If unspecified, uses a default of 60 seconds.This fixes issue #562
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From echicken@1:103/705 to Git commit to main/sbbs/master on Fri Nov 24 06:15:20 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/02bc1bb84255e04f94849fb1
    Modified Files:
    exec/load/http.js
    Log Message:
    Normalize parsed_headers keys to lowercase.

    Fixes #675 (probably).
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From echicken@1:103/705 to Git commit to main/sbbs/master on Fri Nov 24 07:28:39 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/b41d1226f147cb93842af56d
    Modified Files:
    exec/load/http.js
    Log Message:
    Keep original header name alongside normalized for now. We should probably switch to using a method to read these values and do normalization there.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From echicken@1:103/705 to Git commit to main/sbbs/master on Fri Nov 24 07:32:22 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/f25e8e59f6b1bf4bc5f635f7
    Modified Files:
    exec/load/http.js
    Log Message:
    Normalized header name may already match what we received.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)