error with http requesturl and php

24 views
Skip to first unread message

francesco agati

unread,
Jun 29, 2014, 11:33:20 AM6/29/14
to haxe...@googlegroups.com
Hi,
i have a strange error using requesturl with php target compiler.

With this code

package ;

import php.Lib;
import haxe.Http;


class Main  {

static function main()  {

             var html = Http.requestUrl("http://www.github.com");
             trace(html);
}

}

i got this error:

uncaught exception: Undefined property: HList::$h (errno: 8) in C:\xampp2\htdocs\haxe\test\bin\lib\php\Boot.class.php at line #496Undefined property: HList::$h

in file: C:\xampp2\htdocs\haxe\test\bin\lib\php\Boot.class.php line 496
#0 C:\xampp2\htdocs\haxe\test\bin\lib\php\Boot.class.php(496): _hx_error_handler(8, 'Undefined prope...', 'C:\\xampp2\\htdoc...', 496, Array) #1 C:\xampp2\htdocs\haxe\test\bin\lib\php\Boot.class.php(466): _hx_list_iterator->rewind() #2 C:\xampp2\htdocs\haxe\test\bin\lib\HList.class.php(10): _hx_list_iterator->__construct(Object(HList)) #3 C:\xampp2\htdocs\haxe\test\bin\lib\haxe\Http.class.php(108): HList->iterator() #4 C:\xampp2\htdocs\haxe\test\bin\lib\haxe\Http.class.php(33): haxe_Http->customRequest(false, Object(haxe_io_BytesOutput), NULL, NULL) #5 C:\xampp2\htdocs\haxe\test\bin\lib\haxe\Http.class.php(516): haxe_Http->request(false) #6 C:\xampp2\htdocs\haxe\test\bin\lib\Main.class.php(6): haxe_Http::requestUrl('http://www.gith...') #7 C:\xampp2\htdocs\haxe\test\bin\index.php(9): Main::main() #8 {main}

is a bug or my code isn't correct?

Thanks for the help.

Francesco
Reply all
Reply to author
Forward
0 new messages