cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Headers and files

From: Cris Bailiff <c.bailiff_at_awayweb.com>
Date: Wed, 25 Jul 2001 12:09:30 +1000

David Lukasiewicz wrote:
 
Another difference, which might be important - are you sure you're
talking to the correct server?

Your headers taken from your posting program say its posting to
'localhost:1060'
 
> POST /* HTTP/1.1
> User-Agent: Poster
> Host: localhost:1060
> Content-Length: 417
> Connection: Keep-Alive
> Cache-Control: no-cache

So instead of:

> curl -v --data-binary @transaction.xml -H Content-Type:http://localhost

You should be saying:

$ curl -v --data-binary @test.xml -H Content-Type:
http://localhost:1060

That would explain a lot...

If its just an error in your email/cut&paste, then back to trying the
user agent, and checking your content encoding....

Cris
Received on 2001-07-25