1. --!parent
  2. --!encoding=utf-8
  3.  
  4. --****************************************************************************
  5. -- @file      LSW CORE LIB: CURL - CURLFORM CONSTANTS EXTENSION
  6. -- @author    Valentin Schmidt
  7. -- @version   0.1
  8. --****************************************************************************
  9.  
  10. property CURLFORM
  11.  
  12. ----------------------------------------
  13. -- @constructor
  14. ----------------------------------------
  15. on new (me)
  16.  
  17.   form = [:]
  18.   form[#COPYNAME] = 1
  19.   form[#PTRNAME] = 2
  20.   form[#NAMELENGTH] = 3
  21.   form[#COPYCONTENTS] = 4
  22.   form[#PTRCONTENTS] = 5
  23.   form[#CONTENTSLENGTH] = 6
  24.   form[#FILECONTENT] = 7
  25.   form[#ARRAY] = 8
  26.   form[#OBSOLETE] = 9
  27.   form[#FILE] = 10
  28.   form[#BUFFER] = 11
  29.   form[#BUFFERPTR] = 12
  30.   form[#BUFFERLENGTH] = 13
  31.   form[#CONTENTTYPE] = 14
  32.   form[#CONTENTHEADER] = 15
  33.   form[#FILENAME] = 16
  34.   form[#END] = 17
  35.   form[#OBSOLETE2] = 18
  36.   form[#STREAM] = 19
  37.  
  38.   me.CURLFORM = form
  39.  
  40.   return me
  41. end
  42.  
[raw code]