curl-library
RE: please I need help
Date: Wed, 27 Apr 2005 12:31:01 +0200
Thanks
The exact comand line :
curl -v -H "Content-type: text/xml" -d @ASN.xml
http://b2biqa.alcoadirect.com/SOAP
and in my code I´ve tested many options, I use Delphi:
1.-
aCurl.InputFile:=FSOAP; // FSOAP it´s ASN.xml
2.-
aCurl.HeaderFile:=FSOAP;
aCurl.Header:=true;
3.-
aCurl.FormData.Add('', FSOAP, 'text/html',POST_TYPE_FILEDATA);
4.-
aCurl.FormData.Add('', XML, 'text/plain',POST_TYPE_PLAIN);
//XML is a string with the content of ASN.xml
aCurl.Perform;
Thank you very much
-----Mensaje original-----
De: curl-library-bounces_at_cool.haxx.se
[mailto:curl-library-bounces_at_cool.haxx.se] En nombre de Daniel Stenberg
Enviado el: miércoles, 27 de abril de 2005 12:10
Para: libcurl development
Asunto: Re: please I need help
On Wed, 27 Apr 2005, Félix González wrote:
> I´m desperado. I´ve read the documentation, looking in examples but I´m
> capable to send a file using POST in http, using command line curl –d
works
> fine. But using libcurl I can´t send the file. In the server there are any
> form, so where can I sent the file?, how works curl –d @file url?. The
> server doesn’t accept put or upload method.
How do you send the file with the curl command line?
Show us your source code using libcurl that tries to do as the command line
does.
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2005-04-27