@@ -64,7 +64,7 @@ DllOpen("winhttp.dll") ; making sure reference count never reaches 0
6464; _WinHttpSetTimeouts
6565; _WinHttpSimpleBinaryConcat
6666; _WinHttpSimpleFormFill
67- ; _WinHttpSimpleFormFill_SetCallback
67+ ; _WinHttpSimpleFormFill_SetUploadCallback
6868; _WinHttpSimpleReadData
6969; _WinHttpSimpleReadDataAsync
7070; _WinHttpSimpleRequest
@@ -1111,7 +1111,7 @@ EndFunc
11111111; +If you want to upload using alternative way (to avoid certain PHP bug that could exist on server side) then prefix the file string with [["PHP#50338:"]] string.
11121112; +For example: [[..."name:files[]", "PHP#50338:" & $sFile1 & "|" & $sFile2 ...]]
11131113; +Muliple files are always separated with vertical line ASCII character when filling the form.
1114- ; Related .......: _WinHttpConnect, _WinHttpSimpleFormFill_SetCallback
1114+ ; Related .......: _WinHttpConnect, _WinHttpSimpleFormFill_SetUploadCallback
11151115; ============================================================================================
11161116Func _WinHttpSimpleFormFill(ByRef $hInternet , $sActionPage = Default , $sFormId = Default , $sFldId1 = Default , $sDta1 = Default , $sFldId2 = Default , $sDta2 = Default , $sFldId3 = Default , $sDta3 = Default , $sFldId4 = Default , $sDta4 = Default , $sFldId5 = Default , $sDta5 = Default , $sFldId6 = Default , $sDta6 = Default , $sFldId7 = Default , $sDta7 = Default , $sFldId8 = Default , $sDta8 = Default , $sFldId9 = Default , $sDta9 = Default , $sFldId10 = Default , $sDta10 = Default , _
11171117 $sFldId11 = Default , $sDta11 = Default , $sFldId12 = Default , $sDta12 = Default , $sFldId13 = Default , $sDta13 = Default , $sFldId14 = Default , $sDta14 = Default , $sFldId15 = Default , $sDta15 = Default , $sFldId16 = Default , $sDta16 = Default , $sFldId17 = Default , $sDta17 = Default , $sFldId18 = Default , $sDta18 = Default , $sFldId19 = Default , $sDta19 = Default , $sFldId20 = Default , $sDta20 = Default , _
@@ -1570,17 +1570,17 @@ Func _WinHttpSimpleFormFill(ByRef $hInternet, $sActionPage = Default, $sFormId =
15701570EndFunc
15711571
15721572; #FUNCTION# ====================================================================================================================
1573- ; Name...........: _WinHttpSimpleFormFill_SetCallback
1573+ ; Name...........: _WinHttpSimpleFormFill_SetUploadCallback
15741574; Description ...: Sets user defined function as callback function for _WinHttpSimpleFormFill
1575- ; Syntax.........: _WinHttpSimpleFormFill_SetCallback ($vCallback [, $iNumChunks = 100 ])
1575+ ; Syntax.........: _WinHttpSimpleFormFill_SetUploadCallback ($vCallback [, $iNumChunks = 100 ])
15761576; Parameters ....: $vCallback - UDF's name
15771577; $iNumChunks - [optional] number of chunks to send during form submitting. Default is 100.
15781578; Return values .: Undefined.
15791579; Author ........: trancexx
15801580; Remarks .......: Unregistering is done by passing [[0]] as first argument.
15811581; Related .......: _WinHttpSimpleFormFill
15821582; ===============================================================================================================================
1583- Func _WinHttpSimpleFormFill_SetCallback ($vCallback = Default , $iNumChunks = 100 )
1583+ Func _WinHttpSimpleFormFill_SetUploadCallback ($vCallback = Default , $iNumChunks = 100 )
15841584 If $iNumChunks < = 0 Then $iNumChunks = 100
15851585 Local Static $vFunc = Default , $iParts = $iNumChunks
15861586 If $vCallback <> Default Then
@@ -2349,7 +2349,7 @@ Func __WinHttpSetCredentials($hRequest, $sHeaders = "", $sOptional = "", $sCredN
23492349EndFunc
23502350
23512351Func __WinHttpFormUpload($hRequest , $sHeaders , $sData )
2352- Local $aClbk = _WinHttpSimpleFormFill_SetCallback ()
2352+ Local $aClbk = _WinHttpSimpleFormFill_SetUploadCallback ()
23532353 If $aClbk [0 ] <> Default Then
23542354 Local $iSize = StringLen ($sData ), $iChunk = Floor ($iSize / $aClbk [1 ]), $iRest = $iSize - ($aClbk [1 ] - 1 ) * $iChunk , $iCurCh = $iChunk
23552355 _WinHttpSendRequest($hRequest , Default , Default , $iSize )
0 commit comments