COMMUNITY

Http.requestUrl fails with Http Error #0

haxe-php

(Axel Huizinga) #1

while the commented line fails with Http Error #0
the (php7) version using file_get_contents works well - any hints why would be appreciated .
using Http.requestUrl works well if the server response send less data.

//var res:String = Http.requestUrl(’${url}?className=AdminApi&action=vicidial_users&user=${S.vicidialUser}&pass=${S.vicidialPass}’);
var res:String = Syntax.code(“file_get_contents({0})”, ‘$url?className=AdminApi&action=vicidial_users&user=${S.vicidialUser}&pass=${S.vicidialPass}’);


(Aleksandr Kuzmenko) #2

Looks like a problem in Http implementation for php target.
Could you please submit an issue?


(Aleksandr Kuzmenko) #3

And attach a server response example.