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

curl-and-php

Re: Problem With Form Post

From: Tig <tig_at_online.be>
Date: Tue, 17 Aug 2004 17:37:35 +0200

I placed an extra line with this is it, to enable cookies:

curl_setopt ($ch, CURLOPT_COOKIEJAR,
"/opt/usr/dragonz/DOMAIN/HTML/cookie.txt");

, but this doesn't change a thing. Any idea on how I can make this thing work?

Thx

Thierry

Daniel Stenberg <daniel-curl_at_haxx.se> wrote:

> On Tue, 17 Aug 2004, Tig wrote:
>
> > I am having some problem posting data to a form using POST method and
> > curl+php.
>
> Your code sends the data using a multipart formpost, not a plain old POST,
> which may or may not be what you want.
>
> > The result my scripts gives me is the same url with all fileds (except
> > password -psword-) filled in, but it doesn't do anything else (like
showing
> > me the result of the submit)
>
> If the server has filled in the fields with the values you've given, then it

> sounds as if it has received them OK...
>
> > I was wondering if this is due to an error in my code or some
> > protection/code on the website.
>
> This kind of login-system almost *always* use cookies to keep the logged-in
> state.
>
> > PS Submitting data php-style login.php?uname='blabla'&xxxxx doesn't work
> > eather.
>
> "php-style" is called GET in HTTP lingo.
Received on 2004-08-17