mercury13 / curl4delphi Goto Github PK
View Code? Open in Web Editor NEWA little libcURL binding for Delphi XE2+. Supports “easy” interface only. See wiki for more documentation.
A little libcURL binding for Delphi XE2+. Supports “easy” interface only. See wiki for more documentation.
Just to make it more fool-proof.
AFAIK, Unicode is supported — so let's show that!
Hi,
I have been using your library happily to use curl with delphi.
I ran into a few issues when using SMTP and attachments.
Running a diff on your latest source of Curl.Lib.pas and my adjusted version I get this:
1760c1760
< function curl_mime_type(part : HCurlMime; mimetype : PAnsiChar) : TCurlCode;
---
> function curl_mime_type(part : HCurlMimePart; mimetype : PAnsiChar) : TCurlCode;
2616a2616,2620
> function curl_easy_setopt(
> curl : HCurl;
> option : TCurlMimeOption;
> data : HCurlMime) : TCurlCode; overload; inline;
>
3062a3067,3074
> function curl_easy_setopt(
> curl : HCurl;
> option : TCurlMimeOption;
> data : HCurlMime) : TCurlCode;
> begin
> Result := curl_easy_setopt_initial(curl, option, NativeUInt(data));
> end;
>
I wanted to let you know, it seems a good improvement to me to include this into your original.
Greetings, JP.
I did nothing >1 year.
Commented right now because I don’t know what to do.
Make TEasyCurlImpl do most basic things.
curl := CurlGet;
curl.SetUrl('https://empacser.now.sh/api/sync_proxy')
.SetCustomHeaders(
CurlGetSlist
.AddRaw('Content-type: application/json')
.AddRaw('Accept: */*')
)
.SetProxyFromIe
.SetOpt(CURLOPT_POST, true)
.SetOpt(CURLOPT_POSTFIELDS, TEncoding.UTF8.GetBytes('{"xyz": 10}'))
.SetCaFile('curl-ca-bundle.crt')
.SetUserAgent(ChromeUserAgent)
.SwitchRecvToString
.Perform;
I need this for work
Trust me, it works (curl4delphi started as a wrapper for a REST service I may not tell you about).
But I’d like to make a demo.
I need those for work
csfAutoRewind, csfAutoDestroy
…to know cURL version converted into curl4delphi
I've got some working C++ code, port it to Delphi.
Write what will do and what will not.
Hello,
Can you help me about following command
curl -vs -H "Accept-Language: bg" -H "Accept: application/json" --user a@b:12345 https://app.prolet.org/steps-beta/clients/generic/import.do -X POST -d "source_post_code=1000" -d "target_post_code=6000" -d "weight=1" -d "paidOnDelivery=true" -d "printFormat=nil" -d "include_price=true" -o d:\l2.pdf
as post me some code of delphi for this parameters
-d
-o
Thanks in advance.
Nikolay Neykov
When Form is present, reader stream makes no sense. Just pass some pointer to a read function.
Sender stream should replace form, form should replace sender stream.
I’m too lazy to identify a type of EVERYTHING. So I’ll do this at least for strings.
LONGs and OFFs are already extracted.
curl.SetRecvFile('file.out');
Right now resolve list is simply ICurlSList.
Not into initial release…
Here are samples.
http://greenbytes.de/tech/tc2231/
I am trying to figure out how I can do the equivalent of the following curl command:
curl.exe -u 652815222:AKCpA67BTYQkBKVbGUHiimyVM68R91V1jN4bRRkASFRojxL3KUJQiukLp4BksGqQE2Jn7zSjZ -O "https://artifactory.reference.com/artifactory/TEST/v2.0/Setup.exe" -k --ipv4 -x 10.14.38.26:80
While I am sure this is possible, I have not found a cross-reference for the options -u, -x and --ipv4.
Thanks in advance
-Mohamed
…wrapper for curl_formadd.
It’d be interesting…
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.