hard Lynch [mailto:[EMAIL PROTECTED]
Sent: Fri 12/17/2004 11:27 AM
To: Yao, Minghua
Cc: Erwin Kerk; [EMAIL PROTECTED]
Subject: RE: [PHP] Question in posting form-data
Yao, Minghua wrote:
> Yes. I did modify the original since I need to send data to a program
> which takes only form-data.
> &qu
Yao, Minghua wrote:
> Yes. I did modify the original since I need to send data to a program
> which takes only form-data.
> "content-disposition: " came from RFC 2388. I don't think the program can
> take application/x-www-form-urlencoded content. Further help needed.
Try it the old way -- I suspe
ssage-
From: Richard Lynch [mailto:[EMAIL PROTECTED]
Sent: Thu 12/16/2004 11:46 AM
To: Yao, Minghua
Cc: Erwin Kerk; [EMAIL PROTECTED]
Subject: RE: [PHP] Question in posting form-data
You also need to URLEncode the $value, either before you pass it in, or
inside the function itself.
Where d
t; to
>
> fputs($fp, "$name=$value\n");
>
>
> But I still got the same message.
>
> -Minghua
>
> -Original Message-
> From: Erwin Kerk [mailto:[EMAIL PROTECTED]
> Sent: Thu 12/16/2004 6:30 AM
> To: Yao, Minghua
> Cc: [EMAIL PROTECTED]
> Sub
Thanks. I changed
fputs($fp, "$value\n");
to
fputs($fp, "$name=$value\n");
But I still got the same message.
-Minghua
-Original Message-
From: Erwin Kerk [mailto:[EMAIL PROTECTED]
Sent: Thu 12/16/2004 6:30 AM
To: Yao, Minghua
Cc: [EMAIL PROTECTED]
Subject: R
Yao, Minghua wrote:
Hi, all,
I am testing how to post form-data to a host using the following code
(test.php):
fputs($fp, "POST $path HTTP/1.1\n");
fputs($fp, "Host: $host\n");
fputs($fp, "Content-Type: multipart/form-data\n");
fputs
6 matches
Mail list logo