cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: curl-library Digest, Vol 90, Issue 48

From: huancong deng <denghuancong_at_gmail.com>
Date: Mon, 18 Feb 2013 17:02:27 +0800

“ curl –i –-url https://xxxx -X DISABLE -H 'Date: Thu, 17 May 2012
19:37:58 GMT' -H 'Accept: application/xml' , it can use curl to implement
it, but i want to implement it use libcurl in c, so , how can i do it ? who
can tell me ? thanks a lot . : )
 the mainly point is how to set DISABLE command.

On Mon, Feb 18, 2013 at 4:24 PM, <curl-library-request_at_cool.haxx.se> wrote:

> Send curl-library mailing list submissions to
> curl-library_at_cool.haxx.se
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-library
> or, via email, send a message with subject or body 'help' to
> curl-library-request_at_cool.haxx.se
>
> You can reach the person managing the list at
> curl-library-owner_at_cool.haxx.se
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of curl-library digest..."
>
>
> Today's Topics:
>
> 1. Problem with old GCC and -Wall: declaration of 'wait' shadows
> a global declaration (Ji?? Hru?ka)
> 2. Re: Problem with old GCC and -Wall: declaration of 'wait'
> shadows a global declaration (Daniel Stenberg)
> 3. Proposed SSLCERTS documentation change (Nick Zitzmann)
> 4. Re: Static linking with mingw without msys (7.29) (Guenter)
> 5. proxy resolution failure (CP, Ambika)
> 6. Re: Welcome to the "curl-library" mailing list (A. V. Josh)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sun, 17 Feb 2013 23:58:16 +0100
> From: Ji?? Hru?ka <jirka_at_fud.cz>
> To: libcurl development <curl-library_at_cool.haxx.se>
> Subject: Problem with old GCC and -Wall: declaration of 'wait' shadows
> a global declaration
> Message-ID:
> <
> CAGE_+C6MuFYxFkVHrrWqufjNaGvMkGFaWvwSfxfz5qtyt_r9Dw_at_mail.gmail.com>
> Content-Type: text/plain; charset=UTF-8
>
> Hi Daniel,
>
> your commit c25383ae "rename "easy" statemachines: call them block
> instead" seems to have broken compilation with old GCC and -Werror due
> to a conflict between parameter "wait" of the new Curl_pp_statemach()
> and system-provided function wait(2).
>
> This was on a quite old and dirty machine when I accidentally used the
> ancient, platform-provided GCC 3.4.6, but still I thought I'd better
> let you know as you seem to care even about such systems around here.
>
> gcc -DHAVE_CONFIG_H -I../include/curl -I../include -I../include
> -I../lib -I../lib -DCURL_HIDDEN_SYMBOLS -DDEBUGBUILD -DCURLDEBUG
> -fvisibility=hidden -g -O0 -pedantic -Wall -W -Wpointer-arith
> -Wwrite-strings -Wunused -Wshadow -Winline -Wnested-externs
> -Wmissing-declarations -Wmissing-prototypes -Wno-long-long
> -Wfloat-equal -Wno-multichar -Wsign-compare -Wundef
> -Wno-format-nonliteral -Wendif-labels -Wstrict-prototypes
> -Wdeclaration-after-statement -Wno-system-headers -Werror -MT
> libcurl_la-curl_ntlm_wb.lo -MD -MP -MF
> .deps/libcurl_la-curl_ntlm_wb.Tpo -c curl_ntlm_wb.c -fPIC -DPIC -o
> .libs/libcurl_la-curl_ntlm_wb.o
> In file included from imap.h:25,
> from urldata.h:170,
> from curl_ntlm_wb.c:43:
> pingpong.h:77: warning: declaration of 'wait' shadows a global declaration
> /usr/include/sys/wait.h:115: warning: shadowed declaration is here
> make[2]: *** [libcurl_la-curl_ntlm_wb.lo] Error 1
>
> pingpong.h:77:
> CURLcode Curl_pp_statemach(struct pingpong *pp, bool wait);
>
> /usr/include/sys/wait.h:115:
> extern __pid_t wait (__WAIT_STATUS __stat_loc);
>
> $ cat /etc/redhat-release; gcc -v
> Red Hat Enterprise Linux AS release 4 (Nahant Update 7)
> gcc version 3.4.6 20060404 (Red Hat 3.4.6-10)
>
> No other problems with GCC 4.6.2 on the same machine, or when I
> changed it to e.g. "bool waitx".
>
> Kind regards,
> Jiri
>
>
> ------------------------------
>
> Message: 2
> Date: Mon, 18 Feb 2013 00:17:13 +0100 (CET)
> From: Daniel Stenberg <daniel_at_haxx.se>
> To: libcurl development <curl-library_at_cool.haxx.se>
> Subject: Re: Problem with old GCC and -Wall: declaration of 'wait'
> shadows a global declaration
> Message-ID: <alpine.DEB.2.00.1302180016250.8865_at_tvnag.unkk.fr>
> Content-Type: text/plain; charset="iso-8859-2"; Format="flowed"
>
> On Sun, 17 Feb 2013, Ji?? Hru?ka wrote:
>
> > your commit c25383ae "rename "easy" statemachines: call them block
> instead"
> > seems to have broken compilation with old GCC and -Werror due to a
> conflict
> > between parameter "wait" of the new Curl_pp_statemach() and
> system-provided
> > function wait(2).
>
> Thanks Ji??, I pushed a fixed now that calls the variable 'block' instead.
> Hopefully that doesn't shadow any other funtion! :-)
>
> --
>
> / daniel.haxx.se
>
> ------------------------------
>
> Message: 3
> Date: Sun, 17 Feb 2013 16:20:15 -0700
> From: Nick Zitzmann <nick_at_chronosnet.com>
> To: libcurl development <curl-library_at_cool.haxx.se>
> Subject: Proposed SSLCERTS documentation change
> Message-ID: <86EEFFC6-A077-4657-B09D-EA473199DC77_at_chronosnet.com>
> Content-Type: text/plain; charset="us-ascii"
>
> I've attached a patch for a change to the SSL certificate documentation.
> I'd like to propose two changes:
>
> 1. The NSS certificate documentation had several typos and grammatical
> errors. I tried to iron them out.
>
> 2. The documentation mentions SSL certificate bundles, but doesn't mention
> that the schannel and darwinssl engines don't use SSL certificate bundles;
> they use the certificates that are in the Internet Options control panel
> (schannel) or the Keychain (darwinssl). I added documentation for both of
> them.
>
> Comments? Corrections? Objections? Blessings for committing?
>
> I also couldn't help but notice that the current lib/curl_schannel.c code
> returns CURLE_SSL_CONNECT_ERROR instead of CURLE_SSL_CACERT if there was a
> certificate-related error during the TLS/SSL handshake. Why
> CURLE_SSL_CONNECT_ERROR? I thought CURLE_SSL_CACERT was the correct return
> value if there was a certificate problem with the site, but I could be
> wrong.
>
> Nick Zitzmann
> <http://www.chronosnet.com/>
>
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: sslcerts.patch
> Type: application/octet-stream
> Size: 4353 bytes
> Desc: not available
> URL: <
> http://cool.haxx.se/pipermail/curl-library/attachments/20130217/3bca6302/attachment-0001.obj
> >
> -------------- next part --------------
>
>
> ------------------------------
>
> Message: 4
> Date: Mon, 18 Feb 2013 02:24:26 +0100
> From: Guenter <lists_at_gknw.net>
> To: libcurl development <curl-library_at_cool.haxx.se>
> Subject: Re: Static linking with mingw without msys (7.29)
> Message-ID: <512182CA.1070305_at_gknw.net>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Hi,
> Am 17.02.2013 17:49, schrieb Andrew Clarkin:
> > I have downloaded curl-7.29.0-devel-mingw32 zipfile, unpacked it and
> > moved the contents to my mingw folder. I have done nothing else during
> > installation as I cannot see anything else that is mentioned in the
> > documentation that would work and some of the files mentioned do not
> > seem to be included in the current release. (Cannot see how to use
> > mingw32-make for installation and configure not an option.)
> >
> > As a test I have then tried to compile curl\samples\simple.c
> >
> > gcc -o simple.exe simple.c -I..\include -L..\lib -lcurldll
> >
> > This works fine and produces an executable. When executed I am prompted
> > for libcurl.dll and once I add curl\bin to my system path the exectuable
> > runs fine. So far so good.
> >
> > However, I want to link simple.c statically so that I don't require
> > libcurl.dll
> >
> > gcc -o simple.exe simple.c -DCURL_STATICLIB -I..\include -L..\lib
> -lcurl
> >
> > This generates mutiple "undefined reference" errors. I have also tried
> > linking other libraries as suggested in various posts and web pages
> > (such as ws2_32, winmm, z) but to no avail and I'm now struggling.
> >
> > Can anybody please help? I feel I should be able to link statically
> > since I can link dynamically. In particular:
> > Is static linking possible without using msys?
> > Is static linking possible using the setup I have (without building
> > libcurl myself)?
> > Am I missing something?
> yes, the makefiles in ./samples folder ... ;-)
> the issue you see is most likely that you didnt add the other bunch of
> dependency libs since this version is build with almost everything -
> hence it depends on openssl, libssh2, libidn, zlib ...
> just set a path to your MinGW\bin folder and then just try inside the
> samples dir 'mingw32-make' - that should build the samples and link them
> statically; if not please post exact error output here ...
>
> G?n.
>
>
>
>
>
> ------------------------------
>
> Message: 5
> Date: Mon, 18 Feb 2013 04:58:45 +0000
> From: "CP, Ambika" <ambika-p.c_at_hp.com>
> To: "curl-library_at_cool.haxx.se" <curl-library_at_cool.haxx.se>
> Subject: proxy resolution failure
> Message-ID:
> <
> 923CBED5124A444C9B3C151760F14AFA0D9F2B3C_at_G6W2499.americas.hpqcorp.net>
>
> Content-Type: text/plain; charset="us-ascii"
>
> Hello,
>
> My module with proxy URL and port configurations uses libcurl to send data
> from a device. Module does an hourly retry if previous send failed. In a
> scenario where, previous send failed and I unplug the network cable. Module
> starts to retry after an hour and fails (and this is expected). The error
> observed is as follows:
>
> * getaddrinfo(3) failed for xxx-xxxx.xxxx.xx.com:<port no.>
>
> * Couldn't resolve proxy 'xxx-xxxx.xxxx.xx.com'
>
> * Closing connection #0
>
> * Couldn't resolve proxy name
>
> And curl_easy_perform() with the error CURLE_COULDNT_RESOLVE_PROXY (5)
>
> Later when I connect back the network cable, ideally the next retry should
> be successful. But, it continues to fail with same above error. I was using
> curl-7.19.6 and upgraded to curl-7.28.1 but issue still occurs. I am able
> to ping to the proxy URL from command line. If network cable is not
> unplugged and connected back, it works successfully all the time with both
> of the curl versions.
>
> Regards
>
> Ambika
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://cool.haxx.se/pipermail/curl-library/attachments/20130218/ff71277b/attachment-0001.html
> >
>
> ------------------------------
>
> Message: 6
> Date: Mon, 18 Feb 2013 13:54:12 +0530
> From: "A. V. Josh" <vegasluxor_at_gmail.com>
> To: curl-library_at_cool.haxx.se
> Subject: Re: Welcome to the "curl-library" mailing list
> Message-ID:
> <
> CAB6g-9qdOtCXtNRDzO1U_z7daAQ45nm2Xm3jLWqA3W7UtmRPmg_at_mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> I am facing a problem after migrating from oracle 10 to 11g. Pro*C code
> using curl.h is not able to compile. Getting below error:
>
> --------------
>
> "/usr/include/curl/curlrules.h", line 134.6: 1506-195 (S) Integral constant
> expression with a value greater than zero is required.
>
> ---------------
>
> Curl version is v 1.370 2008-10-17 03:59:02
>
> Can you please help? Do i need to upgrade curl ? If yes, then which all
> files? Please advise.
>
> Thanks!
>
>
> On Mon, Feb 18, 2013 at 1:16 PM, <curl-library-request_at_cool.haxx.se>
> wrote:
>
> > Welcome to the curl-library_at_cool.haxx.se mailing list! Hello
> > subscriber!
> >
> > Welcome to the curl-library mailing list. Please note that all
> > subscribers will be added as "moderated". This means that your first
> > post to the mailing list will be intercepted by the server and require
> > an admin to okay it before it reaches the list.
> >
> > Once your first post has been verified, your subsequent posts will be
> > allowed without human interventions. Thanks for your patience with
> > this anti-spam measure!
> >
> > To post to this list, send your message to:
> >
> > curl-library_at_cool.haxx.se
> >
> > General information about the mailing list is at:
> >
> > http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-library
> >
> > If you ever want to unsubscribe or change your options (eg, switch to
> > or from digest mode, change your password, etc.), visit your
> > subscription page at:
> >
> >
> >
> http://cool.haxx.se/cgi-bin/mailman/options/curl-library/vegasluxor%40gmail.com
> >
> >
> > You can also make such adjustments via email by sending a message to:
> >
> > curl-library-request_at_cool.haxx.se
> >
> > with the word `help' in the subject or body (don't include the
> > quotes), and you will get back a message with instructions.
> >
> > You must know your password to change your options (including changing
> > the password, itself) or to unsubscribe without confirmation. It is:
> >
> > curl123
> >
> > Normally, Mailman will remind you of your cool.haxx.se mailing list
> > passwords once every month, although you can disable this if you
> > prefer. This reminder will also include instructions on how to
> > unsubscribe or change your account options. There is also a button on
> > your options page that will email your current password to you.
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://cool.haxx.se/pipermail/curl-library/attachments/20130218/81b004f7/attachment.html
> >
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> curl-library mailing list
> curl-library_at_cool.haxx.se
> http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-library
>
>
> ------------------------------
>
> End of curl-library Digest, Vol 90, Issue 48
> ********************************************
>

-- 
personal blog : denghuancong.com
facebook: facebook.com/denghuancong
twitter : twitter.com/denghuancong

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-02-18