cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

SCO sscanf issue

From: Renou, Stephane <Stephane.Renou_at_Genesys.com>
Date: Tue, 1 Jul 2003 10:32:06 +0200

I am trying to use libcurl on SCO openserver.
It compiled fine and when just using curl in command line mode I don't see
any issue.
When starting libcurl with simple.c the sample program, I have a connection
error. When debugging further, I found out that the following lines in
url.c(line 1946):

if (2 > sscanf(data->change.url,
                   "%64[^\n:]://%512[^\n/?]%[^\n]",
                   conn->protostr, conn->gname, conn->path)) {

is not filling correctly the address.
For example if I try with http://www.yahoo.com/ it fills correctly the
protostr but gname contain ww and path contains w.yahoo.com.

The same line is working fine with curl in command line mode.
I tried to change a lot of things without any positive result, I am now
wandering if this is a known issue?
Thanks
Stephane

-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
Received on 2003-07-01

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET