A place to log my programming solutions.

Tagged :: class

31
Dec 08

PHP HTTP Class 2

Revisiting the topic of my previous post, I’ve played around some more with this PHP HTTP Class. This morning, I’ve figured out how to send files over HTTP (actually HTTPS, but it works the same way). If you’ve looked through the author’s test scripts, you see that for file uploads, the provided example is:

$arguments["PostFiles"] = array(
	"userfile" => array(
		"Data" => "This is just a plain text attachment file.",
		"Name" => "attachment.txt",
		"Content-Type" => "automatic/name",
	),
	"anotherfile" => array(
		"FileName" => "test_http_post.php",
		"Content-Type" => "automatic/name",
	)
);

Read more »

30
Dec 08

PHP HTTP Class

I’ve found a great PHP script that can essentially turn a web server into a virtual browser.  The script is small and lightweight compared to existing solutions (just 62KB) and it isn’t dependent on anything else.  I needed it for sending/receiving data through POST (because GET is easy), and more importantly, doing it over SSL.  I still need to figure out how to upload files through this, but I don’t think it should be too big of an issue.  I’m sure it’s just a matter of encoding.

Read more »

About NVNCBL and Myself

Contact Me