<?php
// +-------------------------------------------------+
// © 2002-2011 PMB Services / www.sigb.net pmb@sigb.net et contributeurs (voir www.sigb.net)
// +-------------------------------------------------+
// $Id: openurl_transport_http.class.php,v 1.2.22.1 2025/09/19 11:59:43 dbellamy Exp $

if (stristr($_SERVER['REQUEST_URI'], ".class.php")) {
    die("no access");
}

global $class_path;

require_once $class_path."/openurl/transport/openurl_transport.class.php";

class openurl_transport_byref_http extends openurl_transport_byref{

    public function __construct($url,$notice_id,$source_id,$byref_url) {
    	parent::__construct($url,$notice_id,$source_id,$byref_url);
    	static::$uri = static::$uri.":http:openurl-by-ref";
    }
}

class openurl_transport_byval_http extends openurl_transport_byval{

    public function __construct($url) {
    	parent::__construct($url);
    	static::$uri = static::$uri.":http:openurl-by-val";
    }
}

class openurl_transport_inline_http extends openurl_transport_inline{

    public function __construct($url) {
     	parent::__construct($url);
     	static::$uri = static::$uri.":http:openurl-inline";
    }

    public function send(){
    	return  openurl_transport_http::get($this->generateURL());
    }
}