﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
1049	InetRead() inserts arbitrary \0 characters.	GEOSoft	Valik	"I'm classing this as a bug but it may be more of a feature request.  InetRead() doesn't wait for the read to finish before returning.


{{{
$sTemp = @TempDir & ""\cWeather.txt""
$sStr = InetRead(""http://www.google.ca/ig/api?weather=nanaimo,BC"", 1)
ClipPut(BinaryToString($sStr))
$sSrc = InetGet(""http://www.google.ca/ig/api?weather=nanaimo,BC"", $sTemp, 1)
InetClose($sSrc)
If NOT $sSrc Then Exit
ClipPut(ClipGet() & @CRLF & @CRLF & FileRead($sTemp))
FileDelete($sTemp)
}}}
 This gave me the following results where the top portion is from InetRead() and The bottom is from InetGet() and FileRead().

<?xml version=""1.0""?><xml_api_reply version=""1""><weather module_id=""0"" tab_id=""0"" mobile_row=""0"" mobile_zipped=""1"" row=""0"" section=""0"" ><forecast_information><city data=""Nanaimo, BC""/><postal_code data=""nanaimo,BC""/><latitude_e6 data=""""/><longitude_e6 data=""""/><forecast_date data=""2009-06-29""/><current_date_time data=""2009-06-29 15:07:41 +0000""/><unit_system data=""US""/></forecast_information><current_conditions><condition data=""Partly Cloudy""/><temp_f data=""55""/><temp_c data=""13""/><humidity data=""Humidity: 54%""/><icon data=""/ig/images/weather/partly_cloudy.gif""/><wind_condition data=""Wind: W at 7 mph""/></current_conditions><forecast_conditions><day_of_week data=""Mon""/><low data=""50""/><high data=""69""/><icon data=""/ig/images/weather/partly_cloudy.gif""/><condition data=""Partly Cloudy""/></forecast_conditions><forecast_conditions><day_of_week data=""Tue""/><low data=""51""/><high data=""70""/><icon data=""/ig/images/weather/sunny.gif""/><condition data=""Sunny""/></forecast_conditions><forecast_conditions><day_of_week data=


<?xml version=""1.0""?><xml_api_reply version=""1""><weather module_id=""0"" tab_id=""0"" mobile_row=""0"" mobile_zipped=""1"" row=""0"" section=""0"" ><forecast_information><city data=""Nanaimo, BC""/><postal_code data=""nanaimo,BC""/><latitude_e6 data=""""/><longitude_e6 data=""""/><forecast_date data=""2009-06-29""/><current_date_time data=""2009-06-29 15:07:41 +0000""/><unit_system data=""US""/></forecast_information><current_conditions><condition data=""Partly Cloudy""/><temp_f data=""55""/><temp_c data=""13""/><humidity data=""Humidity: 54%""/><icon data=""/ig/images/weather/partly_cloudy.gif""/><wind_condition data=""Wind: W at 7 mph""/></current_conditions><forecast_conditions><day_of_week data=""Mon""/><low data=""50""/><high data=""69""/><icon data=""/ig/images/weather/partly_cloudy.gif""/><condition data=""Partly Cloudy""/></forecast_conditions><forecast_conditions><day_of_week data=""Tue""/><low data=""51""/><high data=""70""/><icon data=""/ig/images/weather/sunny.gif""/><condition data=""Sunny""/></forecast_conditions><forecast_conditions><day_of_week data=""Wed""/><low data=""54""/><high data=""74""/><icon data=""/ig/images/weather/sunny.gif""/><condition data=""Sunny""/></forecast_conditions><forecast_conditions><day_of_week data=""Thu""/><low data=""58""/><high data=""78""/><icon data=""/ig/images/weather/sunny.gif""/><condition data=""Sunny""/></forecast_conditions></weather></xml_api_reply>

Using _InetGetSource() works but that means there is no advantage to using the native function."	Bug	closed	3.3.1.2	AutoIt	3.3.0.0	Blocking	Fixed		
