Renou, Stephane | 1 Jul 2003 10:32

SCO sscanf issue

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

Daniel Stenberg | 1 Jul 2003 12:10
Picon
Favicon
Gravatar

Re: SCO sscanf issue

On Tue, 1 Jul 2003, Renou, Stephane wrote:

> 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.

How can the same source line work differently when used in curl or when used
in your program?

> I tried to change a lot of things without any positive result, I am now
> wandering if this is a known issue?

Not to me. But then, I don't think that many people use curl on SCO
openserver. I've personally never used it and thus never tried curl or libcurl
there.

--

-- 
 Daniel Stenberg -- curl: been grokking URLs since 1998

-------------------------------------------------------
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

Daniel Stenberg | 1 Jul 2003 17:31
Picon
Favicon
Gravatar

Re: help with get

On Sat, 28 Jun 2003, Paul Accosta wrote:

> I have a program that gets webpages. Ive noticed that with some webpages
> that I do not receive the entire content. I actaully ran snort to find more
> detailed information and from what I can tell libcurl send a FIN back before
> the entire transfer is complete.

libcurl only does that if it believes the transfer is complete.

> It doesnt do this often and size is not the issue. I have no problem getting
> something large like ebay.com. What Ive noticed though is the pages that
> come up short do not have a content length in the page header. Is this the
> cause of my problem? And if it is is there a way around this so that I can
> retrieve full pages.

Can you please provide more details on when you see this problem? This sounds
like a possible bug in libcurl (or in the server) so it would be nice to find
it...

--

-- 
 Daniel Stenberg -- curl: been grokking URLs since 1998

-------------------------------------------------------
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

Renou, Stephane | 3 Jul 2003 15:03

Re: Re: SCO sscanf issue

On Tue, 1 Jul 2003, Daniel Stenberg wrote:

>> 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.

>How can the same source line work differently when used in curl or when
used
>in your program?

Just for your information and in case anyone else would need it, you need to
link simple.o with src/urlglob.o (that is linked with curl binary) and then
it works fine. I did not dig far enough to understand all the reasons but
was able to find a workaround that helps me. My link line is then:
gcc  -g -O2 -o simple  simple.o ../../src/urlglob.o -lcurl -lz -lnsl
-lsocket

>> I tried to change a lot of things without any positive result, I am now
>> wandering if this is a known issue?

>Not to me. But then, I don't think that many people use curl on SCO
>openserver. I've personally never used it and thus never tried curl or
libcurl
>there.

Stéphane

-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
(Continue reading)

Wei Weng | 3 Jul 2003 16:43

Error message from FTP operation

Is there an API that I can use to retrieve FTP response/error message from an
FTP operation?

For example, If I do the following:

RNFR /temp/temp.txt
550 /temp/temp.txt: No such file or directory.

I want to get the "/temp... no such file or directory." as an error message. 

Do I have to parse the returned headers (with the response code in the front)
myself?

Thanks

Wei

-------------------------------------------------------
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

Daniel Stenberg | 4 Jul 2003 17:48
Picon
Favicon
Gravatar

Re: Error message from FTP operation

On Thu, 3 Jul 2003, Wei Weng wrote:

> Is there an API that I can use to retrieve FTP response/error message from
> an FTP operation?
>
> For example, If I do the following:
>
> RNFR /temp/temp.txt
> 550 /temp/temp.txt: No such file or directory.
>
> I want to get the "/temp... no such file or directory." as an error message.

Nope, there's no such API in the current libcurl. I would be interested if you
can come up with a nice interface...

> Do I have to parse the returned headers (with the response code in the
> front) myself?

That's the only available approach right now.

--

-- 
 Daniel Stenberg -- curl: been grokking URLs since 1998

-------------------------------------------------------
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

(Continue reading)

Eduardo Gómez | 7 Jul 2003 13:02
Picon
Picon
Favicon

One way connection

Hi everyone.
I would like to know if there is any easy way to
implement a unidirectional transfer with libcurl.
I'm developing a test program which sends a burst of
POST request to a server, in order to test its
performance. I'm doing so by setting a really low
CURLOPT_TIMEOUT when sending the petition, but the
Alarm Clock message appears, indicating (as I
understood it) that the alarm signal wasn't caught by
libcurl, thus aborting the program. If I recreate the
easy handle used for the requests, the message doesn't
appear, but the rate of messages degrades.

Any idea of how to indicate libcurl that no response
is needed, with using the timeout method?

Thanks in advance.
            Eduardo G. Melguizo

___________________________________________________
Yahoo! Messenger - Nueva versión GRATIS
Super Webcam, voz, caritas animadas, y más...
http://messenger.yahoo.es

-------------------------------------------------------
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

(Continue reading)

Ufuk Kayserilioglu | 7 Jul 2003 13:26

[OffTopic] HTTP server library...

Hi everybody,

Sorry for the Off-Topic mail but I presume someone here might be able to 
help me.

I am looking for the almost the exact analogue of cURL as an HTTP 
server. That is, a open source (preferably non-GPL), multi-threaded 
C/C++ library implementing an HTTP/S server with method/URL handlers. 
All my searches on freshmeat and sourceforge have been fruitless in the 
respect that they usually do not fulfill one or more of the above 
requirements.

I would be grateful to anyone who can give me a pointer.

Thanks,

Ufuk Kayserilioglu

-------------------------------------------------------
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

Michael Roberts | 7 Jul 2003 14:00
Favicon

Re: [OffTopic] HTTP server library...

Since a server has to sit there as a daemon, you're unlikely to find 
anything particularly library-like; you're more or less restricted to 
complete program packages.  What are you wanting to do with this?  Why, 
for instance, is Apache not appropriate for your needs?  If you just 
really need something that can register C/C++ functions against 
particular URLs, you might want to give AOLserver (aolserver.com) a 
look, it's been open (and non-GPL) for over a year now.  Another one I'd 
look at might be Medusa (http://www.nightmare.com/medusa/), which is 
Python-based but *extremely* lean, and you could easily write Python 
wrappers for your C/C++ code to do whatever you want.  I am a great 
Medusa fan.

Or maybe I'm way offbase on what you're looking for....

Michael

Ufuk Kayserilioglu wrote:

> Hi everybody,
>
> Sorry for the Off-Topic mail but I presume someone here might be able 
> to help me.
>
> I am looking for the almost the exact analogue of cURL as an HTTP 
> server. That is, a open source (preferably non-GPL), multi-threaded 
> C/C++ library implementing an HTTP/S server with method/URL handlers. 
> All my searches on freshmeat and sourceforge have been fruitless in 
> the respect that they usually do not fulfill one or more of the above 
> requirements.
>
(Continue reading)

Denis Lepine | 7 Jul 2003 17:42

FTP with multiple logins

Hello

I want to use CURL in C/C++ in order to connect to a computer through a FTP
firewall, as described in this example:

ftp ftp.server.com
Connected to ftp.server.com.
220-bk PROXY FTP server (Version: Tue Oct 30 00:50:11 EST 2001) 220-FIREWALL
FTP PROXY 220 please authenticate to FIREWALL Name (ftp.server.com:root):
fwuser 331 Password required for fwuser.
Password:
230-User fwuser authenticated
230 Login to server with "user" command.
ftp> user anonymous
331 Guest login ok, send your complete e-mail address as password.
Password:
230 User ftp logged in.  Access restrictions apply.
ftp> dir
200 PORT command successful.

Any idea about how to define the URL to do multiple logins, or to add a
login with "curl_easy_setopt" ?

Thank you

denis

-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
(Continue reading)


Gmane