Modify

Opened 9 years ago

Closed 9 years ago

#3130 closed Bug (Rejected)

Crash since AutoIT3.3.14x on call COM-Object winhttp.winhttprequest.5.1

Reported by: th.edlinger@… Owned by:
Milestone: Component: AutoIt
Version: 3.3.14.0 Severity: None
Keywords: ObjCreate, POST-request, COM Cc:

Description

I use following code for doing HTTP-POST-requests:

Local $obj_HTTP
Local $str_answer_content
Local $str_answer_status
Local $str_return
Local Const $val_timeout_resolve = 5000
Local Const $val_timeout_connect = 5000
Local Const $val_timeout_send = 5000
Local Const $val_timeout_receive = 5000

; Creating the HTTP-Object
$obj_HTTP = ObjCreate("winhttp.winhttprequest.5.1")
$obj_HTTP.Open("POST", $str_adress, False)
$obj_HTTP.SetTimeouts($val_timeout_resolve , $val_timeout_connect , $val_timeout_send , $val_timeout_receive)
$obj_HTTP.SetRequestHeader("Content-Type", "application/x-www-form-urlencoded")

; Performing the Request
$obj_HTTP.Send($str_request)

; Download the body response if any, and get the server status response code.
$str_answer_content = $obj_HTTP.ResponseText
$str_answer_status = $obj_HTTP.Status

; Return (and check status-code)
If $str_answer_status <> 200 then
	$str_return = 0
	Return $str_return
Else
	$str_return = $str_answer_content
	Return $str_answer_content
EndIf

The server answer with the current memory-load. If the webserver is down, zero will be returned. Since AutoIT version 3.3.14.x the skript crashes while the server is down, so i have to use an error-handler (i know it isn't very nice). All works fine if i compile the same code with AutoIT version 3.3.12.0. Is there any change between this versions because i can't find one in the official changelog.

Attachments (0)

Change History (1)

comment:1 Changed 9 years ago by Melba23

  • Resolution set to Rejected
  • Status changed from new to closed

In future please use the forum for support questions.

And yes there is a difference - 3.3.14.? now crashes on COM errors whereas previous releases silently hid them. I imagine it is this - but posting in the forum will get you more details.

M23

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The ticket will remain with no owner.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.