Date: Wed, 7 Nov 2001 16:54:27 +0100 (MET)
On Wed, 7 Nov 2001, Nick Chirca wrote:
> I am trying to fill in a form, a text message that I get from a file.
> open F,"text.file";
> close F;
> Curl::easy::setopt($curl, Curl::easy::CURLOPT_POSTFIELDS, \@data);
Set CURLOPT_VERBOSE to 1 and you'll get to see the entire HTTP request curl
makes, it often explains enough.
I bet this fails because CURLOPT_POSTFIELDS wants a string, not an array
Try something like this:
Curl::easy::setopt($curl, Curl::easy::CURLOPT_POSTFIELDS, join("", @data));
> How am I suppose to fill in this form, some text ?
For details on how to script HTML forms with curl, check out the
-- Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/Received on 2001-11-07