Skip to content

Commit 60731b6

Browse files
committed
Added: More work regarding rev178 plus description of the feature.
1 parent 5fbb9fa commit 60731b6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

WinHttp.au3

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1100,7 +1100,8 @@ EndFunc
11001100
; and the other removed from the submited form. "Checkbox" and "Button" input types are removed from the submitted form unless explicitly set. Same goes for "Radio" with exception that
11011101
; only one such control can be set, the rest are removed. These controls are set by their values. Wrong value makes them invalid and therefore not part of the submited data.
11021102
; +All other non-set fields are left default.
1103-
; +Last (superfluous) [[$sAdditionalData]] argument can be used to pass authorization credentials in form [["[CRED:username:password]"]], magic string to ignore cerificate errors in form [["[IGNORE_CERT_ERRORS]"]] and/or HTTP request header data to add.
1103+
; +Last (superfluous) [[$sAdditionalData]] argument can be used to pass authorization credentials in form [["[CRED:username:password]"]], magic string to ignore cerificate errors in form [["[IGNORE_CERT_ERRORS]"]], change output type to extended array with [["[RETURN_ARRAY]"]] moniker, and/or HTTP request header data to add.
1104+
; If array is returned then [[array[0]]] is the response header, [[array[1]]] is returned data and [[array[2]]] is URL of the final request.
11041105
; +
11051106
; +If this function is used to upload multiple files then there are two available ways. Default would be to submit the form following RFC2388 specification.
11061107
; In that case every file is represented as multipart/mixed part embedded within the multipart/form-data.
@@ -1560,7 +1561,7 @@ Func _WinHttpSimpleFormFill(ByRef $hInternet, $sActionPage = Default, $sFormId =
15601561
EndIf
15611562
Local $iSCode = _WinHttpQueryHeaders($hRequest, $WINHTTP_QUERY_STATUS_CODE)
15621563
If $iRetArr Then
1563-
Local $aReturn[2] = [$vReturned, _WinHttpQueryHeaders($hRequest)]
1564+
Local $aReturn[3] = [_WinHttpQueryHeaders($hRequest), $vReturned, _WinHttpQueryOption($hRequest, $WINHTTP_OPTION_URL)]
15641565
$vReturned = $aReturn
15651566
EndIf
15661567
_WinHttpCloseHandle($hRequest)

0 commit comments

Comments
 (0)