Http
You are viewing an old version of this entry, click here to see latest version.
class haxe.HttpAvailable in flash, flash9, neko, js, php
var cnxTimeout : FloatAvailable in neko, php
var noShutdown : BoolAvailable in neko, php
var url : String
function new( url : String ) : Void
function customRequest( post : Bool, api : Output, ?sock : AbstractSocket, ?method : String ) : VoidAvailable in neko, php
function fileTransfert( argname : String, filename : String, file : Input, size : Int ) : VoidAvailable in neko, php
function onData( data : String ) : Void
function onError( msg : String ) : Void
function onStatus( status : Int ) : Void
function request( post : Bool ) : Void
function setHeader( header : String, value : String ) : Void
function setParameter( param : String, value : String ) : Void
function setPostData( data : String ) : VoidAvailable in neko, js
static var PROXY : { port : Int, host : String, auth : { user : String, pass : String } }Available in neko, php
static function request( url : String ) : StringAvailable in neko, js
static function requestUrl( url : String ) : StringAvailable in php
version #2274, modified 2008-07-28 10:00:49 by api
1 comment
To set a cookie in a request, use something like
''
var h = new haxe.Http(url);
h.setHeader("Cookie", "PHPSESSID=" + neko.Web.getCookies().get("PHPSESSID"));
''