@@ -64,7 +64,7 @@ DllOpen("winhttp.dll") ; making sure reference count never reaches 0
64
64
; _WinHttpSetTimeouts
65
65
; _WinHttpSimpleBinaryConcat
66
66
; _WinHttpSimpleFormFill
67
- ; _WinHttpSimpleFormFill_SetCallback
67
+ ; _WinHttpSimpleFormFill_SetUploadCallback
68
68
; _WinHttpSimpleReadData
69
69
; _WinHttpSimpleReadDataAsync
70
70
; _WinHttpSimpleRequest
@@ -1111,7 +1111,7 @@ EndFunc
1111
1111
; +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.
1112
1112
; +For example: [[..."name:files[]", "PHP#50338:" & $sFile1 & "|" & $sFile2 ...]]
1113
1113
; +Muliple files are always separated with vertical line ASCII character when filling the form.
1114
- ; Related .......: _WinHttpConnect, _WinHttpSimpleFormFill_SetCallback
1114
+ ; Related .......: _WinHttpConnect, _WinHttpSimpleFormFill_SetUploadCallback
1115
1115
; ============================================================================================
1116
1116
Func _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 , _
1117
1117
$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 =
1570
1570
EndFunc
1571
1571
1572
1572
; #FUNCTION# ====================================================================================================================
1573
- ; Name...........: _WinHttpSimpleFormFill_SetCallback
1573
+ ; Name...........: _WinHttpSimpleFormFill_SetUploadCallback
1574
1574
; Description ...: Sets user defined function as callback function for _WinHttpSimpleFormFill
1575
- ; Syntax.........: _WinHttpSimpleFormFill_SetCallback ($vCallback [, $iNumChunks = 100 ])
1575
+ ; Syntax.........: _WinHttpSimpleFormFill_SetUploadCallback ($vCallback [, $iNumChunks = 100 ])
1576
1576
; Parameters ....: $vCallback - UDF's name
1577
1577
; $iNumChunks - [optional] number of chunks to send during form submitting. Default is 100.
1578
1578
; Return values .: Undefined.
1579
1579
; Author ........: trancexx
1580
1580
; Remarks .......: Unregistering is done by passing [[0]] as first argument.
1581
1581
; Related .......: _WinHttpSimpleFormFill
1582
1582
; ===============================================================================================================================
1583
- Func _WinHttpSimpleFormFill_SetCallback ($vCallback = Default , $iNumChunks = 100 )
1583
+ Func _WinHttpSimpleFormFill_SetUploadCallback ($vCallback = Default , $iNumChunks = 100 )
1584
1584
If $iNumChunks < = 0 Then $iNumChunks = 100
1585
1585
Local Static $vFunc = Default , $iParts = $iNumChunks
1586
1586
If $vCallback <> Default Then
@@ -2349,7 +2349,7 @@ Func __WinHttpSetCredentials($hRequest, $sHeaders = "", $sOptional = "", $sCredN
2349
2349
EndFunc
2350
2350
2351
2351
Func __WinHttpFormUpload($hRequest , $sHeaders , $sData )
2352
- Local $aClbk = _WinHttpSimpleFormFill_SetCallback ()
2352
+ Local $aClbk = _WinHttpSimpleFormFill_SetUploadCallback ()
2353
2353
If $aClbk [0 ] <> Default Then
2354
2354
Local $iSize = StringLen ($sData ), $iChunk = Floor ($iSize / $aClbk [1 ]), $iRest = $iSize - ($aClbk [1 ] - 1 ) * $iChunk , $iCurCh = $iChunk
2355
2355
_WinHttpSendRequest($hRequest , Default , Default , $iSize )
0 commit comments