using the URL content method with https
Posted: Tue Jun 02, 2015 2:35 pm
I'm using the following code
To try and get the expected 405 Method Not Allowed error from a https URL.
In other words, I know that I should get 'HTTP/1.1 405: Method Not Allowed' when I browse to these URLs.
I followed a tutorial on the site.
When I run the program, I get an error when trying to read in the URL I enter.
Code: Select all
on mouseUp
put the text of "txtAlloyURL" into testURL
put URL testURL into mainReturnInfo
put the result into errorText
if errorText is empty then
set the text of field "fldErrorCode" to mainReturnInfo
else
set the text of field "fldErrorCode" to errorText
end if
end mouseUp
In other words, I know that I should get 'HTTP/1.1 405: Method Not Allowed' when I browse to these URLs.
I followed a tutorial on the site.
When I run the program, I get an error when trying to read in the URL I enter.
Any idea why it seems to fail on the second "/" in the https:// portion of the URL?button "btnStartChecking": execution error at line 2 (Chunk: error in object expression) near "txtAlloyURL", char 8