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

curl-and-php

Re: Problem With Form Post

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Tue, 17 Aug 2004 16:57:30 +0200 (CEST)

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.

-- 
      Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
       Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2004-08-17