cURL / Mailing Lists / curl-users / Single Mail

curl-users

Libcurl for Metrowerks CodeWarrior

From: Hardeep Singh <hardeep.bhatia_at_gmail.com>
Date: Tue, 22 Mar 2005 12:03:19 +0530

Hi Eric,

I saw the version of libcurl for Metrowerks CodeWarrior provided by you.

I also need the same because of my project requirements. I need to
compile the libcurl as static library in CFM format project, because
my final project is in CFM format and it cannot detect the libraries
compiled in mach-o format. When, I try to do so, the compiler
complains about the inclusion of extra/stricmp.h and extra/strdup.h in
config-mac.h file. I noticed that you have not commented this code, so
most probably you are not making CFM format library, but maybe MACH-O
format project.

Also, the xml file that you have uploaded can't be opened in
CodeWarrior. It seems that you have made the project in CW 5.0, and I
am using CW 9.0. It may be compatibility issue.

I am able to compile libcurl as static library in CodeWarrior in CFM
format(Did some changes in config-mac.h file). But when I try to use
it, I get some errors. The errors seems to be because of the clash of
system header files used by libcurl and the header files provided with
the codewarrior(May be, I did some thing wrong). There are total of
three errors, related to redeclaration of some variables in system
header files.

If you or any body else, have ever tried compiling libcurl as static
library in CW in CFM format, or if you have any idea about how to do
it, please let me know.

If you want I can send you the steps with which I compiled libcurl on
CW in CFM format.

Thanks in Advance,

Regards,
Hardeep Singh

On Sat, 5 Feb 2005 10:56:38 +0100, curl-users-request_at_cool.haxx.se
<curl-users-request_at_cool.haxx.se> wrote:
> Send Curl-users mailing list submissions to
> curl-users_at_cool.haxx.se
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://cool.haxx.se/mailman/listinfo/curl-users
> or, via email, send a message with subject or body 'help' to
> curl-users-request_at_cool.haxx.se
>
> You can reach the person managing the list at
> curl-users-owner_at_cool.haxx.se
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Curl-users digest..."
>
> Today's Topics:
>
> 1. RE: Uploading Files (Bill Mercer)
> 2. A possible bug in function inflate_stream
> (content_encoding.c)? (Maruko)
> 3. Re: WPAD, PAC files, and FindProxyForURL() (Ralph Mitchell)
> 4. Re: HTTPS entering username and password (Ralph Mitchell)
> 5. Libcurl for Metrowerks CodeWarrior (Eric VERGNAUD)
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 04 Feb 2005 18:19:57 -0500
> From: "Bill Mercer" <bmerc_at_nccer.org>
> Subject: RE: Uploading Files
> To: <curl-users_at_cool.haxx.se>
> Message-ID: <s203bcfe.066_at_smtp.nccer.org>
> Content-Type: text/plain; charset=US-ASCII
>
> In order to understand what curl is doing, you first need to know how http uploads in general work.
> Here's a link you might find helpful...
> http://www.cs.tut.fi/~jkorpela/forms/file.html
>
> >nate_at_visimark.us 02/04/05 10:22AM
>
> >What I am looking for is a real life example for uploading files using cURL
> >using the various http upload methods put, etc. With each step broken down
> >and explained and the advantages/disadvantages of each method. I will have
> >several clients uploading large files and I want it to be stable. Can cURL
> >give me more speed and reliability then a standard php upload? I can see
> >using cURL for things like AIM with Authorize.net, but when would you use
> >cURL upload instead of php upload for example.
> >
> >Obviously I am a novice here seeking guidance.
> >
> >Thanks for the response and this awesome tool.
> >
> >Nate
> >
>
> ------------------------------
>
> Message: 2
> Date: Sat, 5 Feb 2005 11:17:14 +0800
> From: Maruko <maruko.chibi_at_gmail.com>
> Subject: A possible bug in function inflate_stream
> (content_encoding.c)?
> To: curl-users_at_cool.haxx.se
> Message-ID: <ef633aa905020419176158b194_at_mail.gmail.com>
> Content-Type: text/plain; charset=US-ASCII
>
> Hi,
>
> When I test libcurl + HTTP protocol today, I found it failed to
> download a 64KB file. In function inflate_stream (content_encoding.c),
> the call to inflate() returns Z_BUF_ERROR.
>
> I noticed that 64KB is just the size of the decompress buffer. When
> downloading a 64KB file, the decompress buffer is all used, so
> z->avail_out will be 0, in this case, the statement below does not
> work correctly:
>
> /* Done with these bytes, exit */
> if (status == Z_OK && z->avail_in == 0 && z->avail_out > 0)
> ^ ^ ^ ^
> ^ ^ ^ ^ ^ ^
> I think the condition z->avail_out > 0 should be removed.
>
> Any ideas?
>
> Best regards,
> maruko
>
> ------------------------------
>
> Message: 3
> Date: Fri, 4 Feb 2005 21:34:38 -0600
> From: Ralph Mitchell <ralphmitchell_at_gmail.com>
> Subject: Re: WPAD, PAC files, and FindProxyForURL()
> To: curl tool talk <curl-users_at_cool.haxx.se>
> Message-ID: <997a524e0502041934738f8563_at_mail.gmail.com>
> Content-Type: text/plain; charset=US-ASCII
>
> Nearest I got to that was pushing a .pac file through the Mozilla
> SpiderMonkey javascript engine in a Bourne shell script. My notes on
> that are in the curl mail archive, sometime around 2002, I think.
> I'll look them out when I get to work tonight.
>
> As for doing it in a browser, I suppose it ought to work, provided the
> FindProxyForUrl() is exposed to the web page, which it may not be.
>
> The FindProxyForUrl() function is supposed to return either DIRECT, or
> the url of the proxy, in the form of http://proxy.domain.com:80/.
>
> Ralph Mitchell
>
> On Fri, 4 Feb 2005 13:33:41 -0800, Edward Chan <echan_at_macromedia.com> wrote:
> >
> >
> > This is probably not the right place to ask this, but I'm hoping somebody on
> > this list might know about this. I'm trying to use WPAD (Web Proxy
> > Auto-Discovery Protocol). I've set up a PAC (Proxy Auto-Configuration)
> > file, and set my browser to auto detect proxy. The browser is able to find
> > the PAC file by using WPAD, and I guess executes the FindProxyForURL()
> > function defined in the PAC file. But I would like to be able to call this
> > function from my JavaScript embedded in my HTML page to see what this
> > function returns. Is this possible?
> >
> > Thanks for any help you can give me.
> >
> > Ed
>
> ------------------------------
>
> Message: 4
> Date: Fri, 4 Feb 2005 21:48:44 -0600
> From: Ralph Mitchell <ralphmitchell_at_gmail.com>
> Subject: Re: HTTPS entering username and password
> To: curl tool talk <curl-users_at_cool.haxx.se>
> Message-ID: <997a524e050204194828882343_at_mail.gmail.com>
> Content-Type: text/plain; charset=US-ASCII
>
> One time I found that I had to fetch the login page and *then* re-do
> the fetch and hand it the "-u userid:passwd". The initial page fetch
> sent a cookie that was supposed to be handed back along with the
> authorization. That's assuming the site normally gives you a popup
> authentication window for Basic Auth or something similar.
>
> If the login page is actually a web page, you'll need to fetch the
> page, extract the form, fill in the userid/passwd, then POST the
> variables back to the form action url.
>
> Ralph Mitchell
>
> On Fri, 4 Feb 2005 13:51:51 -0400, David Stephenson
> <DStephenson_at_fans.uwi.tt> wrote:
> > On a browser the site would put a GUI in which to enter the username and
> > password for the site. I have tried various options suggested in the manual
> > for entering this information (-u etc) but I always get the web page back
> > "you are not authorized to view...". Is there something I am missing here.
> >
>
> ------------------------------
>
> Message: 5
> Date: Sat, 05 Feb 2005 01:25:59 +0100
> From: Eric VERGNAUD <eric.vergnaud_at_jlynx.com>
> Subject: Libcurl for Metrowerks CodeWarrior
> To: curl tool talk <curl-users_at_cool.haxx.se>
> Message-ID: <BE29D129.2F7F6%eric.vergnaud_at_jlynx.com>
> Content-Type: text/plain; charset="us-ascii"
>
> Hi,
>
> Enclosed you will find an up-to-date version of libcurl for Metrowerks
> CodeWarrior.
>
> The xml file is the CodeWarrior project itself.
>
> This project builds a static library that can be included in a typical
> CodeWarrior MacOSX graphical application.
>
> The enclosed includes a fix we discussed some time ago regarding strdup.
> When linking with CodeWarrior's runtime and the MacOSX System framework, it
> appears that strdup is called from the system while free is called through
> Metrowerk's runtime, and that the 2 are incompatible.
>
> Since there is no way I can recompile the system, I have enclosed a small
> fix which takes advantage of the builtin strdup indirection in libcurl. It's
> all in easy.c.
>
> Building libcurl with CodeWarrior makes it possible to trace calls while
> debugging, which is not possible using libcurl.a, because CodeWarrior cannot
> step into code compiled by GCC.
>
> Enjoy !
>
> -------------------------------
> Eric VERGNAUD - JLynx Software
> Cutting-edge technologies and
> services for software companies
> web: http://www.jlynx.com
> -------------------------------
>
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: not available
> Type: application/octet-stream
> Size: 382040 bytes
> Desc: not available
> Url : http://cool.haxx.se/pipermail/curl-users/attachments/20050205/581eb71a/attachment.obj
>
> ------------------------------
>
> _______________________________________________
> Curl-users mailing list
> Curl-users_at_cool.haxx.se
> http://cool.haxx.se/mailman/listinfo/curl-users
>
> End of Curl-users Digest, Vol 13, Issue 8
> *****************************************
>
Received on 2005-03-22