この記事は、HTTP_Requestのマニュアルに載っている全サンプルコードをHTTP_Request2対応で書き換えてみる企画の3回目です。HTTP_Request2クラスの概要を知りたい方は、下記リンクの#1を参照ください。 全記事へのリンク: [pear]HTTP_Request2のサンプル#1 [pear]HTTP_Request2のサンプル#2 [pear]HTTP_Request2のサンプル#3 [pear]HTTP_Request2のサンプル#4 [pear]HTTP_Request2のサンプル#5 #6 PDF 文章をアップロードする [phpcode] setAuth(“johndoe”, “foo”, HTTP_Request2::AUTH_BASIC); $req->addUpload(“johndoe-txt.pdf”, “/home/johndoe/text.pd
![[php][pear]HTTP_Request2のサンプル#3 | うえちょこ@ぼろぐ](https://cdn-ak-scissors.b.st-hatena.com/image/square/8d71ff5111e05619a10d29bb40d7aebaa75c8fbc/height=288;version=1;width=512/https%3A%2F%2Fs0.wp.com%2Fi%2Fblank.jpg)