!HTTP.DEF [108] - Symbols used in HTTP.SBR
!-------------------.-------------------.-------------------.-------------------.
!EDIT HISTORY
! VEDIT=106
! Note: history reformatted 9-Feb-17
! [108] 17-Jul-19 / jdm / Add a few missing HTTPERR_xxx flags
! [107] 15-Apr-19 / jdm / Add XHTTPF_REQGETX 
! [106] 31-May-18 / jdm / Add XHTTPF_SSL_TLS11, _TLS12 
! [105] 24-Sep-14 / jdm / Add several HTTPERR_xxx codes, ATHTTPF_DEBUG
! [104] 13-Nov-12 / jdm / Add XHTTPF_REQGETRAW
! [103] 23-Oct-12 / jdm / Add XHTTPF_GETSTSTXT
! [102] 18-Oct-12 / jdm / Add SSL variations
!-------------------.-------------------.-------------------.-------------------.

! flags
define XHTTPF_SSL       = &h0001
define XHTTPF_REQPOST   = &h0002     ! tells upload routine to use POST format
define XHTTPF_REQUPLOAD = &h0004     ! uplaod files (variation of POST)
define XHTTPF_REQHEAD   = &h0008     ! Makes the request a HEAD request
define XHTTPF_REQXML    = &h0010     ! Makes the request a POST using text/xml content
define XHTTPF_REQGET    = &h0020     ! Simple GET (text of HTML page) (see _REQGETX below)
define XHTTPF_REQPUT    = &h0040     ! Simple PUT
define XHTTPF_DOWNLOAD  = &h0080     ! Download a file
define XHTTPF_FILEREQ   = &h0100     ! request arg is a filespec (or list of) not a string
define XHTTPF_FILERESP  = &h0200     ! response arg is a filespec not a buffer
define XHTTPF_DEBUG     = &h0400     ! output copy of genereated request in DEBUG.REQ
define XHTTPF_HDRBODY   = &h0800     ! parse file into headers (added individually) and body
define XHTTPF_PARMBODY  = &h1000     ! like HDRBODY but use AddParam instead of AddHeader 
define XHTTPF_SETFROMURL= &h2000     ! Extract path and form info from URL
define XHTTPF_FORCEXFR  = &h4000     ! File parms are server-relative; xfer to PC
define XHTTPF_REQGETRAW = &h8000     ! [104] binary variation of REQGET

![102] variations of SSL protocol (optional)
define XHTTPF_SSL_TLS1  = &h00010000 ! [102] TLS 1.0 or higher
define XHTTPF_SSL_SSL2  = &h00020000 ! [102] SSL 2.0
define XHTTPF_SSL_SSL3  = &h00040000 ! [102] SSL 3.0
define XHTTPF_SSL_PCT1  = &h00080000 ! [102] PCT 1.0
define XHTTPF_SSL_TLS11 = &h01000000 ! [106] TLS 1.1 or higher
define XHTTPF_SSL_TLS12 = &h02000000 ! [106] TLS 1.2 or higher

define XHTTPF_GETSTSTXT = &h00100000 ! [103] get sts text from last op
define XHTTPF_REQGETX   = &h01000020 ! [107] extended version of REQGET

define ATHTTPF_DEBUG    = &h80000000 ! [105] internal debugging flag used by ATHTTP.SBX

! opcodes
define XHTTPOP_REQ      = 1         ! general HTTP Request

! error status
define HTTPERR_TOOFEW        = -1    ! too few params
define HTTPERR_NOMEM         = -2    ! can't malloc (or out of malloc hdls) 
define HTTPERR_BADOPCODE     = -3    ! no such Opcode 
define HTTPERR_PERR          = -4    ! misc param error 
define HTTPERR_LIBLINK       = -5    ! can't dynamically link library 
define HTTPERR_LICENSE       = -6    ! license failure
define HTTPERR_ADDFILE       = -7    ! error during adding file (upload)
define HTTPERR_SYNCREQ       = -8    ! error during SyncRequest
define HTTPERR_POSTFILE      = -9    ! error processing file for post
define HTTPERR_STRALC        = -10   ! unable to allocate string buf
define HTTPERR_PUTREQ        = -11   ! error during put
define HTTPERR_DOWNLOAD      = -12   ! error during download

define HTTPERR_DOWNLOAD      = -12   ! [105] error during download 
define HTTPERR_LOGIN         = -13   ! [105] unable to log in to server (FTP OR SSH) 
define HTTPERR_DIR           = -14   ! [105] unable to log to directory on server (FTP) 
define HTTPERR_CONNECT       = -15   ! [105] failure to connect (ssh) 
define HTTPERR_SESSION       = -17   ! [105] open session  failure (ssh) 
define HTTPERR_PTY           = -18   ! [105] pty (termtype?) failure (ssh) 
define HTTPERR_SHELL         = -19   ! [105] shell startup failure (ssh) 
define HTTPERR_RECV          = -20   ! [105] error receiving data (ssh) 
define HTTPERR_SEND          = -21   ! [105] error sending data (ssh) 
define HTTPERR_DISCONNECT    = -22   ! [105] connection lost (ssh) 
define HTTPERR_NOCHANNEL     = -23   ! [105] no channel (ssh) 
define HTTPERR_EOF           = -24   ! [105] received eof (ssh) 
define HTTPERR_CERT          = -25   ! [105] cert problem  
define HTTPERR_GET           = -26   ! [105] get failed (no access?) 
define HTTPERR_BADCIPHER     = -27   ! [105] bad cipher type 
define HTTPERR_BADKEYLEN     = -28   ! [105] invalid key len 
define HTTPERR_BADCIPHERMODE = -29   ! [105] bad cipher mode 
define HTTPERR_BADPADDING    = -30   ! [105] bad padding value 
define HTTPERR_BADFILE       = -31   ! [105] bad file (or file error) 
define HTTPERR_CRYPTERR      = -32   ! [105] catch-all CRYPT errors 
define HTTPERR_BADENCODE     = -33   ! [105] bad encoding 
define HTTPERR_BADPUBKEY     = -34   ! [105] bad public key (or error extracting it) 
define HTTPERR_BADPRVKEY     = -35   ! [105] bad private key (or error extracting it) 
define HTTPERR_OPENREMOTE    = -36   ! [105] failure to open remote file 
define HTTPERR_BUSY          = -37   ! [105] attempt to call function already executing 
define HTTPERR_UPLOAD        = -38   ! [105] error uploading (possibly local file doesn't exist?) 
define HTTPERR_CLOSEREMOTE   = -39   ! [105] error close remote 

define HTTPERR_NORSP         = -92   ! [108] no response from client
define HTTPERR_XFRRSP        = -93   ! [108] error transferring web response file from ATE to server
define HTTPERR_STRREQ        = -94   ! [108] string buffer of REQUEST not supported in this configuration
define HTTPERR_XFRREQ        = -95   ! [108] error transferring request file from server to client
define HTTPERR_XFRSBX        = -96   ! [108] error transferring ATHTTP.SBX to client
define HTTPERR_NOSBX         = -97   ! [108] BAS:ATHTTP.SBX not found (for xfer to client)
define HTTPERR_MISSING       = -98   ! missing ATHTTP.SBX [101]
define HTTPERR_PLATFORM      = -99   ! unsupported platform (HTTP.SBR is Windows only)
