cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: File Postilating Errornation

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 5 Jun 2003 00:01:14 +0200 (CEST)

On Wed, 4 Jun 2003, Steve Keller wrote:

[snip]

> $formvars['mediafile'] = "@$file";
> $formvars['submit'] = "1";

> curl_setopt($ch, CURLOPT_POSTFIELDS, $formvars);

This is causing a rfc1867 (multpart) formpost. Is that really what you want?
Can you show us the HTML of the input form that you try to automate?

-- 
 Daniel Stenberg -- curl: been grokking URLs since 1998
-------------------------------------------------------
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
Received on 2003-06-05