A place to log my programming solutions.

Archive :: December 31st, 2008

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 »

About NVNCBL and Myself

Contact Me