Henry Ludemann | 1 Mar 2011 03:16
Picon

Re: Stall when uploading to sftp using multi interface

Daniel Stenberg wrote:
> Thanks a lot for your patches and work on this. I'm on vacation this week so
> I won't get around to looking into these things in any detail until next
> week or so.

No worries! Enjoy your break.

> It will help to get an example application source code done for repeating
> the problems and subsequently verifying the fixes. Then we could possibly
> turn the code into a proper test case to make sure future libcurls won't
> break again in this aspect!

I sent the source of an example program on the 24th that exhibits the
problem. I'll investigate the test framework with a view to
integrating it there.
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Alexander Tairbekov | 1 Mar 2011 04:19
Picon

libcurl code not working on Windows 7

Hello, I am having a problem running my program with libcurl,


What puzzles me is that this program works on Visual Studio 2010 on my computer running Windows XP, however when I try to run the same program on my laptop which runs Windows 7, it gives me the following error message:

Debug Assertion Failed!

Program: C:\Project\libcurl\VisualStudio\project1\Debug\project1.exe
File: f:\dd\vctools\crt_bld\self_x86\crt\src\fwrite.c
Line: 77

Expression: (stream != NULL)

if you need to see my code, here it is:

The program runs through main.cpp, sourcetxt.h, and txtfiles.h, but gives me the error message at line 12 of sourcetxt.h

I notice that ptr, cnt, base, flag, file, charbuf, bufsiz, tmpfname give the error:

CXX0030: Error: expression cannot be evaluated

If anyone can help me out, or if I am completely in the wrong section, please let me know. Thank you.
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Todd A Ouska | 1 Mar 2011 03:34
Favicon

CyaSSL added to SSL layer

I've added CyaSSL to curl's nifty SSL abstraction layer.  I've attempted to follow all coding styles,
message rules, patch formats etc.. But please let me know if I've missed anything.

Thanks,
Todd

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
richardcavell | 1 Mar 2011 09:59
Picon

URL - do you specify only the host or the whole thing?

Hi everyone.

In libcurl, is it usual to identify the host differently from the rest 
of the URL?  eg for

http://en.wikipedia.org/w/api.php?action=login

does one fix the host name and then change the portion after the host 
name between calls?

Richard

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Tiffany Lan | 1 Mar 2011 15:51
Favicon

Small LibCurl example is generating _CrtIsValidHeapPointer(pUserData)

http://curl.haxx.se/mail/lib-2010-11/0244.html

 

I got the same error as this post. Any one knows the solution?

 

Thanks very much.

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Tor Arntsen | 1 Mar 2011 17:06
Picon
Favicon

Re: Modifying the example source code

On Mon, Feb 28, 2011 at 23:13, Ben Noordhuis <info <at> bnoordhuis.nl> wrote:
> On Mon, Feb 28, 2011 at 09:34, Tor Arntsen <tor <at> spacetec.no> wrote:
>> Just to pre-answer a question people may ask.. realloc(NULL) works
>> fine on many architectures. But not on all architectures. To be
>> perfectly portable we use the malloc(1) trick.
>
> Tor, do you happen to know on what platforms or architectures
> realloc(NULL) causes issues? ISO mandates that it should be
> functionally equivalent to malloc() and I use it like that in my own
> code. It's never blown up so far but if there are portability issues,
> I'd like to be one step ahead of them.

AIX 4.x comes to mind. Note that it doesn't crash all the time.. only sometimes.

-Tor
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Lars Nilsson | 1 Mar 2011 17:10
Picon

Re: libcurl code not working on Windows 7

On Mon, Feb 28, 2011 at 10:19 PM, Alexander Tairbekov
<alex.tairbekov <at> gmail.com> wrote:
> Hello, I am having a problem running my program with libcurl,
> What puzzles me is that this program works on Visual Studio 2010 on my
> computer running Windows XP, however when I try to run the same program on
> my laptop which runs Windows 7, it gives me the following error message:

My guess would be that the user account does not have permission to
create a new file in the root of C: and the fopen fails and returns
NULL, and the fwrite asserts when you attempt to write to that NULL
pointer.

Lars Nilsson
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Dan Fandrich | 1 Mar 2011 22:23
Favicon

Re: URL - do you specify only the host or the whole thing?

On Tue, Mar 01, 2011 at 03:59:45AM -0500, richardcavell <at> mail.com wrote:
> In libcurl, is it usual to identify the host differently from the
> rest of the URL?  eg for
> 
> http://en.wikipedia.org/w/api.php?action=login
> 
> does one fix the host name and then change the portion after the host
> name between calls?

That's completely up to the app. libcurl takes a single string containing
the URL; how that is generated by the app is irrelevant to it.

>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Prashant R | 2 Mar 2011 00:13
Picon

libcurl + polarSSL + lwip on embedded system

I am using a setup with libcurl and the ip stack as lwip . I have directed libcurl to use polarSSL for doing SSL . 

I find that as part of the handshake process , lwip read ( lwip_recvfrom) fails immediately after sending the client request . 

Additionally I find that the situation sometimes improves if I add an explicit delay before doing the read operation. 

I have made the appropriate changes to redirect my socket calls to lwip_socket calls . Additionally my http gateway seems to work fine ( I am able to do  normal http transfers via libcurl) . 

Any ideas on why this might be failing ?


-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Gary Maxwell | 2 Mar 2011 00:32
Favicon

RE: libcurl + polarSSL + lwip on embedded system

From: Prashant R
Sent: Tuesday, March 01, 2011 3:14 PM
Subject: libcurl + polarSSL + lwip on embedded system

> I am using a setup with libcurl and the ip stack as lwip . I have directed 
> libcurl to use polarSSL for doing SSL . 

> I find that as part of the handshake process , lwip read ( lwip_recvfrom) 
> fails immediately after sending the client request . 
> Additionally I find that the situation sometimes improves if I add an 
> explicit delay before doing the read operation. 
> I have made the appropriate changes to redirect my socket calls to lwip_socket 
> calls . Additionally my http gateway seems to work fine ( I am able to do  
> normal http transfers via libcurl) . 

> Any ideas on why this might be failing ?

A few years ago, my group struggled to get libcurl + axTLS over an old version of 
lwip to work. All of the issues had to do with lwip properly supporting secure 
TCP/IP connections. 

I would suggest comparing your version of lwip to the latest one available, and
check their mailing list for similar issues as yours. If you find a resolution,
please let us know here so the solution gets archived in the mailing list!

Cheers,
Gary  <at>  Broadsoft

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Gmane