cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Headers and files

From: David Lukasiewicz <davluk_at_hotmail.com>
Date: Tue, 24 Jul 2001 11:43:14 +0200

Hello Linus,

I admire your sense of humor ;-) I have read through the information on your
site. Trying to do a post with xml files to a server with a specific
software, I get the following header:

POST /* HTTP/1.1
User-Agent: Poster
Host: localhost:1060
Content-Length: 417
Connection: Keep-Alive
Cache-Control: no-cache

<?xml version="1.0" encoding="UTF-16"?>
<!DOCTYPE transaction SYSTEM "http://localhost/dtd/request.dtd">
<transaction>
<add_page
url="http://localhost/ZTV_DOMAIN1/magazine_domain1/oml/ztv2_domain1_100.xml"/>
</transaction>

Now trying to send the file containing this information I use cURL this way:
curl -v --data-binary @transaction.xml -H Content-Type:http://localhost

I get the follwing header:

$ curl -v --data-binary @test.xml -H Content-Type: http://localhost
* Connected to localmachine (127.0.0.1)
>POST / HTTP/1.1
User-Agent: curl/7.8 (i686-pc-cygwin) libcurl 7.8 (OpenSSL 0.9.6)
Host: localhost
Pragma: no-cache
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
Content-Length: 277

<?xml version="1.0" encoding="UTF-16"?>
<!DOCTYPE transaction SYSTEM "http://localhost/dtd/request.dtd">
<transaction>
<add_page
url="http://localhost/ZTV_DOMAIN1/magazine_domain1/oml/ztv2_domain1_100.xml"/>
</transaction>

Although this seems fine at first.. the server does not respond correctly to
the post done with cURL. It only responds well using a specific posting
software. Any way of solving this?

Best regards,

Dave

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
Received on 2001-07-24