cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: POST results differ on 2 machines

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 12 Jun 2007 10:01:03 +0200 (CEST)

On Mon, 11 Jun 2007, Tom Hines wrote:

> Hello, I'm using php curl on my local machine (winXP), and testing the same
> php script at one of my shared hosting accounts (Linux). It is a post method
> on a login script, I've been scratching my head for days and can't seem to
> find the reason why it will work on one build (Linux - shared hosting), and
> not the other (my winXP box).

First, you don't tell us what the differences are or what you expect the
script to do. Neither does you script check for errors in case it fails. You
could also consider showing us the headers (in/out) of the request to make it
easier for us to help. You could also try using the latest version just to
make sure the problem isn't already fixed.

Then, that's a PHP script so you'll probably reach more similar minds on the
curl-and-php mailing list as this list (curl-users) is about the command line
tool curl.

And to round off: I always and repeatedly recommend using the curl command
line tool to work out the functionality and debug things with (since it has
way better debugging/tracing abilities than PHP/CURL does) and first once it
works you convert it over to PHP code.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2007-06-12