#4062 assigned Feature Request

InetRead() return http_statuscode on error — at Version 4

Reported by: Jpm Owned by: Jon
Milestone: Component: AutoIt
Version: Severity: None
Keywords: Cc:

Description (last modified by mLipok)

return it in @extended on @error

#include <MsgBoxConstants.au3>

Example()

Func Example()
        Local $dData = InetRead("https://anydesk.com/x")
        ConsoleWrite('@@ Debug(' & @ScriptLineNumber & ') : $dData = ' & $dData & @CRLF & '>Error code: ' & @error & '    Extended code: ' & @extended & ' (0x' & Hex(@extended) & ')' & @CRLF) ;### Debug Console

        ; Display the results.
        MsgBox($MB_SYSTEMMODAL, "", "Error = " & @error & " extended = " & @extended)
EndFunc   ;==>Example

Change History (4)

comment:1 by Jpm, on Dec 26, 2025 at 9:18:25 PM

Type: BugFeature Request

comment:2 by Jpm, on Dec 26, 2025 at 9:23:07 PM

Owner: set to Jon
Status: newassigned

Fix sent to JON

comment:3 by TicketCleanup, on Dec 26, 2025 at 10:00:01 PM

Version: 3.3.14.0

Automatic ticket cleanup.

comment:4 by mLipok, on Jan 8, 2026 at 11:39:30 PM

Description: modified (diff)
Note: See TracTickets for help on using tickets.