Without the maxmem:
Code:
Error: Memory limit reached (see #MaxMem in the help file). The current thread will exit.
Line#
124: {
125: FileRead,file,%field_val%
126: fileType := MimeType(file)
127: SplitPath,field_val,filename
128: FileGetSize,fileSize,%field_val%
129: VarSetCapacity(placeholder, fileSize, 32)
131: postbody = %postbody%; filename="%filename%"
Content-Type: %fileType%
Content-Transfer-Encoding: Binary
---> 137: field_val := placeholder
138: }
139: postbody .= "
" . field_val . "
"
140: }
141: }
142: postbody .= "--" boundary "--
"
146: headers .= (StrLen(headers) ? "
" : "") . "Content-type: multipart/form-data; boundary=" boundary "
" . "Content-Length: " strlen(postbody)
150: if field_isFile
With MaxMem, the results box is empty.. If ther rar file is small, the script works.. For a little time it takes about 400-500 MB of RAM..
The last Lines:
Code:
284: if ((headerRequest:=DllCall("WinINet\HttpQueryInfoA","uint",hRequest,"uint",21,"uint",&header,"uint",&header_len,"uint",0))=1)
284: if ((headerRequest:=DllCall("WinINet\HttpQueryInfoA","uint",hRequest,"uint",21,"uint",&header,"uint",&header_len,"uint",0))=1)
284: if ((headerRequest:=DllCall("WinINet\HttpQueryInfoA","uint",hRequest,"uint",21,"uint",&header,"uint",&header_len,"uint",0))=1)
284: if ((headerRequest:=DllCall("WinINet\HttpQueryInfoA","uint",hRequest,"uint",21,"uint",&header,"uint",&header_len,"uint",0))=1)
284: if ((headerRequest:=DllCall("WinINet\HttpQueryInfoA","uint",hRequest,"uint",21,"uint",&header,"uint",&header_len,"uint",0))=1)
288: if (headerRequest=1)
296: res := "timeout"
299: Loop,Parse,res,
,
301: RetValue := A_LoopField
302: Break
306: if (RetValue="timeout")
307: html := "Error: timeout"
308: Return,-1
071: VarSetCapacity(result,-1)
072: MsgBox,result (10.19)