George Sherwood | 1 Jan 08:43 2007

Re: curl 7.16.0 and git


On Sun, 31 Dec 2006 14:32:03 +0100 (CET)
Daniel Stenberg <daniel <at> haxx.se> wrote:

> On Sat, 30 Dec 2006, George Sherwood wrote:
> 
> > When we do not have NO_CURL_EASY_DUPHANDLE defined, http.c prepares
> > a single "CURL *curl_default" with get_curl_handle(), and new
> > request slots clone it using curl_easy_duphandle(). However, the
> > returned "clone" somehow forgets to set the "magic" number that
> > says it is a GOOD_EASY_HANDLE().'
> 
> Thanks for reporting, but you could consider using the curl-library
> list in the future for libcurl related matters.
> 
> This particular problem is fixed in CVS.
> 

Thanks for the quick fix.  Sorry about using the wrong list.

I have confirmed this fix works with git 1.4.4.3

George Sherwood
Daniel Stenberg | 3 Jan 11:12 2007
Picon

Re: Automated directory listing of mget for ftp - 7.15.1

On Tue, 2 Jan 2007, Nick Harley wrote:

> Is there a way in curl 7.15 (or later; I'd be willing to upgrade) to either 
> do a mget command or just return a directory listing?

curl cannot do 'mget' but it displays the contents of an FTP dir if you just 
make sure you end the URL with a slash, like in:

   curl ftp://server.com/path/to/dir/

The -l/--list-only option is also popular for this case to ease machine 
parsing of the response.

--

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html

John Ford | 3 Jan 10:35 2007

Minimize Window

Hi All,

 

Can anyone tell me how I can automate minimizing the command window?

 

Many thanks,

 

John.

 

 

Nick Harley | 2 Jan 19:22 2007

Automated directory listing of mget for ftp - 7.15.1

I have a problem similar to this thread I found on the archives:

http://curl.haxx.se/mail/archive/0126.html 

except I need to use ftp to retrieve these files. The problem is that
there is a string of six random numbers attached to the end of each
file. Wildcards don't seem to work, but I can use braces to get the
process going. I use a --url command like this to make that work:

--url ftp://<ip
address>/Results/20061227[0-9][0-9][0-9][0-9][0-9][0-9].asc

That means I have to run through a million (minus one) file
combinations to pick up all the files for that day. It's taking about
ten minutes to run through a thousand files. Is there a way in curl 7.15
(or later; I'd be willing to upgrade) to either do a mget command or
just return a directory listing? If I can get a dir or ls output, I can
script a sed to grab the filenames out and loop the curl command to pick
up all the files I need.

Thanks,
Nick
-----------------------------------------
CONFIDENTIALITY NOTICE  
This e-mail is intended for the sole use of the individual(s) to
whom it is addressed, and may contain information that is
privileged, confidential and exempt from disclosure under
applicable law.  You are hereby notified that any dissemination,
duplication, or distribution of this transmission by someone other
than the intended addressee or its designated agent is strictly
prohibited.  If you receive this e-mail in error, please notify me
immediately by replying to this e-mail.

Roger Price | 3 Jan 13:52 2007
Picon
Picon

Re: Minimize Window

Hi John
 
I am not sure how to do exactly what you are asking but wonder why you might need to!
 
I initiate cURL batchfiles from within FileMaker using the 'Sent Event' scriptstep in the following way
 
cmd.exe /K filepath/batchfilename which terminates the command window when complete or:
 
cmd.exe /C filepath/batchfilename which keeps it open.
 
See the following URL for cmd.exe switches: 
 
 
not sure if this is what you want!
 
Roger
 
----- Original Message -----
From: John Ford
Sent: Wednesday, January 03, 2007 9:35 AM
Subject: Minimize Window

Hi All,

 

Can anyone tell me how I can automate minimizing the command window?

 

Many thanks,

 

John.

 

 

Matt Witherspoon | 3 Jan 14:51 2007
Picon

Substantial increase in Curl CPU usage between 7.15.5 - 7.16.0

I am seeing what appears to be a substantial increase in CPU usage due to a CVS
commit in early September 2006 (now part of 7.16.0).

My average transfer speeds with 7.15.5 and earlier is 4.5MB/sec. With 7.16.0 my
average transfer speed is 3.8MB/sec. Note, this is on a slow embedded processor
where the CPU is the bottleneck -- during these transfers the CPU is at a
constant 100% usage. It looks as though 7.16.0 is using more CPU, thus reducing
transfer rates. I have concentrated on testing FTP, but it appears to have the
same problem on HTTP. I can only test download speeds. The results are easily
reproducible to 100KB/sec accuracy.

I tracked down the offending change in the CVS tree to between the times of:
2006-Sep-07 04:00   (fast transfer speed)
2006-Sep-08 08:00   (slower transfer speed)
As you can see, this is when HTTP pipelining was added. There appear to be other
changes to various socket functions during this time, and I suspect one of them
is causing the CPU usage problem.

It is also quite possible that Curl isn't taking up more CPU, but is using a
different system call resulting in more CPU at the system level.

Since there are quite a few changes between the time frames I have noted above,
I
am having trouble nailing down the exact problem. Does anyone have any ideas or
functions I should look at?

Thanks, Matt

Nick Harley | 3 Jan 15:33 2007

Re: Automated directory listing of mget for ftp - 7.15.1

Perfect! Thanks, Daniel.

>>> Daniel Stenberg <daniel <at> haxx.se> 1/3/2007 4:12 AM >>>
On Tue, 2 Jan 2007, Nick Harley wrote:

> Is there a way in curl 7.15 (or later; I'd be willing to upgrade) to
either 
> do a mget command or just return a directory listing?

curl cannot do 'mget' but it displays the contents of an FTP dir if you
just 
make sure you end the URL with a slash, like in:

   curl ftp://server.com/path/to/dir/ 

The -l/--list-only option is also popular for this case to ease machine

parsing of the response.

--

-- 
  Commercial curl and libcurl Technical Support:
http://haxx.se/curl.html
-----------------------------------------
CONFIDENTIALITY NOTICE  
This e-mail is intended for the sole use of the individual(s) to
whom it is addressed, and may contain information that is
privileged, confidential and exempt from disclosure under
applicable law.  You are hereby notified that any dissemination,
duplication, or distribution of this transmission by someone other
than the intended addressee or its designated agent is strictly
prohibited.  If you receive this e-mail in error, please notify me
immediately by replying to this e-mail.

Daniel Stenberg | 3 Jan 16:35 2007
Picon

Re: Substantial increase in Curl CPU usage between 7.15.5 - 7.16.0

On Wed, 3 Jan 2007, Matt Witherspoon wrote:

> Since there are quite a few changes between the time frames I have noted 
> above, I am having trouble nailing down the exact problem. Does anyone have 
> any ideas or functions I should look at?

(curl-library should be a better list to discuss this on)

Since you say the CPU is the bottle-neck, it could very well be the "double 
copying" => http://curl.haxx.se/mail/lib-2006-11/0125.html

Ravi Pratap said he'd give it a shot to fix, but clearly he or anyone else 
have not done it yet.

--
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html

Guy Tannenbaum | 4 Jan 09:36 2007
Picon

Corrupted checksum when ftping a large file

Hi,

Encountering the following problem when downloading a file using a c application which uses libcurl's ftp:

When downloading a large (> 100M) file, every once in a while, the file somehow gets corrupted. A file with the same size as the original gets downloaded, but it's checksum is different than the original.

So far, attempting to reproduce this problem with the regular ftp cli on linux is not successful, so I'm suspecting the most likely cause is the way the application is using libcurl.

Any ideas on how to resolve / further debug this ?

Thanks,
Guy

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

Ferry Ie | 4 Jan 13:11 2007
Picon

Posting form containing a hidden field with a very long string value

Hi,

 

I am a curl newbie and am having a problem trying to post a form containing a hidden field with a very long string value. I’ve been playing around with this for days and am wondering if anyone can help. Kind of desperate now J. The following explains what I am trying to do:

 

Hitting a submit button on the test html page below produces a server HTTP response of 302 (redirect) before the browser follows the redirect location.

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<body id="home" class="zeustypeHP">
<div id="zeuswrap">
        <div id="zeuscontentwrap">
                <form name="__aspnetForm" method="post" action="http://www.domain.com.au/DomainDefault.aspx" id="__aspnetForm">
<input type="hidden" name="__VIEWSTATE" value="dDwyNTIwMjMxMDg7dDw7bDxpPDA+Oz47bDx0PDtsPGk8MD47PjtsPHQ8O2w8aTwwPjtpPDE+O2k8Mj47aTwzPjtpPDQ+O2k8Nz47aTw4PjtpPDk+O2k8MTA+O2k8MTE+O2k8MTI+O2k8MTM+O2k8MTQ+O2k8MTU+O2k8MTY+O2k8MTg+Oz47bDx0PHA8bDxpbm5lcmh0bWw7PjtsPFJlYWwgRXN0YXRlIGZvciBTYWxlLCBSZW50IGFuZCBTaGFyZSBAIERvbWFpbi5jb20uYXU7Pj47Oz47dDxwPGw8Y29udGVudDs+O2w8UmVhbCBlc3RhdGUgQCBEb21haW4uY29tLmF1LiBIb3VzZXMgYW5kIGFwYXJ0bWVudHMgZm9yIHNhbGUgb3IgcmVudCBhbGwgb3ZlciBBdXN0cmFsaWEuIFRob3VzYW5kcyBvZiBwcm9wZXJ0aWVzIGluIFN5ZG5leSwgTWVsYm91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+JSmxFR64fxtxWlDB87zuXXeBHjM=" />
                        <div id="zeuscontent"><a name="zeusmaincontent"></a>                
                                <div class="zeussearchTo">
                                                <h2 class="zeushSearchToBuy">Search to buy</h2>
<label id="zeuslabSearchToBuy" for="searchToBuy">Enter suburb, postcode or property ID</label>
<input name="_ctl0:SearchMoreCriteria1:zuessearchToBuy" type="text" maxlength="255" id="_ctl0_SearchMoreCriteria1_zuessearchToBuy" tabindex="1" class="zeustinput" value="2121" />
<input type="submit" name="_ctl0:SearchMoreCriteria1:zeusSearch" value="Search" id="_ctl0_SearchMoreCriteria1_zeusSearch" class="zeussubmit" />
                                </div>
</form>
</body>
</html>

 

As you can see from the above, a field called __VIEWSTATE’ has a very long string value. My question is: how do I emulate this using the curl command line. I tried the following:

 

curl -F "__VIEWSTATE= <at> viewstate.txt;type=application/x-www-form-urlencoded" -F "_ctl0:SearchMoreCriteria1:zuessearchToBuy=2121" -F "_ctl0:SearchMoreCriteria1:zeusSearch=Search" -A "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1" http://www.domain.com.au/DomainDefault.aspx

 

But the above doesn’t seem to produce the same result (server response is 200 OK instead of 302). The viewstate.txt contains the long string value that I copied from the above html. Removing the type=application/x-www-form-urlencoded still produces the same result. Would anyone know what I am missing here. Any help is greatly appreciated. Thanks

 

Regards,

Ferry


--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.16.2/613 - Release Date: 1/01/2007 2:50 PM


--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.16.3/614 - Release Date: 2/01/2007 2:58 PM


Gmane