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

curl-and-php

Re: help!

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 9 Apr 2003 20:29:03 +0200 (CEST)

On Wed, 9 Apr 2003, Siderite wrote:

> I am using cURL to send POST data to the pages the the site reads. However,
> the ouput of the cURL functions is completely bogus. I am reading a file
> over http that is a simple text with 1 word: Costin. The cURL output is
> COSTIN1. How come?

Sorry, that is some kind of PHP magic I don't understand and can't explain.

> Is there a problem with sending GET and POST data in the same time?

Yes, GET and POST are mutually exclusive. You can only use one of them in a
single request. If you need to use both, then make two requests.

> are there problems with CURL installed as a PHP module?

I'm sure there are, but I do believe most of what is claimed to work works.

[snip]

> where $post is a string looking like this:
>
> a="b"&c="d"

Are those quotes really supposed to be in the data?

-- 
 Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs.
-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
Received on 2003-04-09