David Bonham | 6 Feb 19:34
Gravatar

7.24.0 curl windows exe download not available

http://www.gknw.net/mirror/curl/win32/curl-7.24.0-ssl-sspi-zlib-static-bin-w32.zip is not available (at least for me).  I've tried for the last couple days.

Is there a mirror for this?
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Daniel Stenberg | 5 Feb 12:07
Picon
Favicon
Gravatar

-f regression

FYI,

Bug report #3481223 properly identified a regression when -f is used with a 
[]-range in a URL. It worked in 7.22 and the commit that broke the old 
behavior is fa775b56de777.

I've come up with a test case for this, test1328 is attached.

I've not yet produced a proper fix, as my first naive approach turned out to 
fix this problem but break some existing tests.

-- 

  / daniel.haxx.se
<testcase>
<info>
<keywords>
HTTP
HTTP GET
-f
</keywords>
</info>

<reply>
<data>
HTTP/1.1 404 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT
Content-Length: 6
Funny-head: yesyes

-noo-
</data>
<data1>
HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT
Content-Length: 6
Connection: close
Funny-head: yesyes

-yes-
</data1>
<datacheck>
HTTP/1.1 200 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT
Content-Length: 6
Connection: close
Funny-head: yesyes

-yes-
</datacheck>
</reply>

#
# Client-side
<client>
<server>
http
</server>
 <name>
HTTP GET a globbed range with -f
 </name>
 <command>
-f 'http://%HOSTIP:%HTTPPORT/[13280000-13280001]' -o log/#1
</command>
</client>

#
# Verify data after the test has been "shot"
<verify>
<strip>
^User-Agent:.*
</strip>
<protocol>
GET /13280000 HTTP/1.1

Host: %HOSTIP:%HTTPPORT

Accept: */*



GET /13280001 HTTP/1.1

Host: %HOSTIP:%HTTPPORT

Accept: */*



</protocol>
</verify>
</testcase>
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Javier Barroso | 2 Feb 15:14
Picon

Reading url request from a file ?

Hi,

I would like to use curl but reading headers which I send from a file
such http://pastebin.com/TcP0UVbd

I'm thiniking in shell scripting (perl, awk ..), but maybe there is
another easy method to do it

I would like something like curl --read-request-from-file myfile

I didn't find any like it in internet, but probabbly someone though
in that before

Do you have any idea or  I need to write an bash function which
convert headers to -H curl switch , and use $() bash operator (and add
data post which is included in the file too)?

Thanks !
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Ricardo Vila | 2 Feb 12:54
Favicon
Gravatar

Character encoding problem in windows when using --data-binary and special characters like 'Ñ'

Hi.
I'm Ricardo Vila and i'm new to this mailing list.

Briefly: i'm facing a problem using command line curl in windows
platforms to send data stored in properties files. I hope somebody can
point me a solution.

Te complete situation is as follows. At Teimas, we have one app wich
accepts REST requests. This requests has a lot of fields so our
clients store the parameters in a properties file and then send it
with curl and the --data-binary option. Something like this (windows
example):

curl.exe -i -u :'some_token' -H "Accept: application/x-yaml" -H
"Content-type: text/plain" http://ourserver.com/api/nt/ --data-binary
@file.properties -X POST

This works fine running curl form linux and windows. But in windows
appears one problem when in the properties file, appears something
like this:

    documento.productor.centro.nombre=XESTION A CORUÑA, S.A.

The Ñ character is encoded (in windows clients) in a way that our
server cannot handle it and the rest of the line is trunked. So the
value on our server for this example is 'XESTION A CORU'

We have tried many things like:

  - Use --data-urlencode option (with and without changing content-type)
  - Use --data option
  - Use --data-urlencode with -crlf
  - May combination of the above options

I know that de manual page says ' The contents of the file must
already be URL-encoded.' but i wonder if i can let curl command manage
this.
¿I'm missing something? ¿Any idea?

Thanks in advance

--
Ricardo Vila Avendaño
Teimas Desenvolvemento S.L.

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Faizel Isaacs | 31 Jan 17:28
Picon

CURL Command line tool change SFTP Cipher

Hi There

Can you please let me know if there's any command line switches one can
use to instruct CURL to use certain "Cipher" switches when we need to
SFTP to some host that supports the none Cipher switch. I'm looking at
reducing the overhead of SSH encryption and speed up the SFTP transfers,
by implementing the “none” cipher. From the HP-UX documentation they
specify these as follows. I'm using curl to SFTP to a couple of host to
pull certain files but I do not see any command line switches in the man
pages if I want to use "Ciphers" there's also no man pages to indicate
if CURL or LibCurl will use the ssh config file I've setup on the system
for the particular account I'm using to initiate the SFTP session from.

Q: What is the NONE Cipher Switch?
A: The NONE cipher switch disables data encryption AFTER you have been
authenticated or logged into the remote host. This can significantly
reduce the load on the CPUs of both machines and may improve performance
even more. Its important to remember that the initial authentication
process is still fully encrypted. Additionally, while the data is no
longer encrypted each packet is still digitially signed and protected
against in transit manipulation of the information. Anytime the NONE
cipher is used a warning will be printed to screen saying "WARNING: NONE
CIPHER ENABLED". If you do not see that warning then the None cipher is
not in use.

I did some a comparison between blowfish, arcfour and  none. Below are
the results (using the SFTP client from the HP-UX machine), if you could
let me know if CURL and LibCurl got any similar switches I can use to
accomplish the below.

root <at> idrive02# sftp -oCipher=none -oNoneSwitch=yes -oNoneEnabled=yes
faizeli <at> idrivetst01
Connecting to idrivetst01...

Password:
WARNING: ENABLED NONE CIPHER
sftp> put hpux__11.31_06080801.tgz
Uploading hpux__11.31_06080801.tgz to
/usr/users/faizeli/hpux__11.31_06080801.tgz
hpux__11.31_06080801.tgz
   100%  120MB  39.9MB/s  23.9MB/s   00:03
Max throughput:  47.9MB/s

root <at> idrive02# sftp -oCipher=blowfish faizeli <at> idrivetst01
Connecting to idrivetst01...

Password:
sftp> put hpux__11.31_06080801.tgz
Uploading hpux__11.31_06080801.tgz to
/usr/users/faizeli/hpux__11.31_06080801.tgz
hpux__11.31_06080801.tgz
   100%  120MB  23.9MB/s  21.8MB/s   00:05
Max throughput:  25.9MB/s

root <at> idrive02# sftp -oCipher=arcfour faizeli <at> idrivetst01
Connecting to idrivetst01...

Password:
sftp> put hpux__11.31_06080801.tgz
Uploading hpux__11.31_06080801.tgz to
/usr/users/faizeli/hpux__11.31_06080801.tgz
hpux__11.31_06080801.tgz
   100%  120MB  23.9MB/s  17.5MB/s   00:05
Max throughput:  25.8MB/s

Regards
Faizel

This e-mail is classified C2 - Vodacom Restricted - Information to be used inside Vodacom but it may be
shared with authorised partners

This e-mail is sent on the Terms and Conditions that can be accessed by Clicking on this link
www.vodacom.co.za/vodacom/terms+and+conditions "

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
curl | 27 Jan 12:34
Favicon
Gravatar

"address already in use" error

Hello!

I'm having difficulties in using curl (windows) with several proxies
simultaneously.

I'm running 8 instances of curl with a unique proxy assigned to each,
they all run very well until they start dropping off  one by one with
the error 'address already in use',

The command line options (aside from the proxy) are: curl
--connect-timeout 999 -v --retry 5, but from what I've read the error
I'm experiencing will always halt Curl and it will never actually
'retry'.

Curl is a great piece of software, but if anyone could help me with this
niggle, then that'd be great!

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Jake Heng | 26 Jan 21:57
Picon
Gravatar

Question about CURL 28 Timeout Error

Hi Dan:


Just earlier today you answered a question I had about CURL.  Because I'm uploading items to an Windows FTPS server, I'm not able to use the TCP KEEPALIVE command.  Files are uploaded successfully, but we get this error:

100 62.5M    0     0  100 62.5M      0   213k  0:05:00  0:05:00 --:--:--     0* FTP response timeout

* control connection looks dead

100 62.5M    0     0  100 62.5M      0   213k  0:05:00  0:05:00 --:--:--     0* Connection #0 to host website.abc left intact

 

curl: (28) FTP response timeout

* Closing connection #0

* SSLv3, TLS alert, Client hello (1):



Any thoughts?

Thanks,

Jake



Hi Dan,

Thank you for your work on CURL.  We have been using it extensively to upload files to our servers.

One problem that we are experiencing is a timeout 28 error.  I noticed your post on the subject on this link: http://curl.haxx.se/mail/archive-2009-08/0059.html

Since that was posted some years ago, I was wondering if there have been any changes to CURL since than.  Is there a newer version that might not exhibit this error?

Thank you!
Daniel Stenberg
1:59 PM (1 hour ago)
to me
If you're talking about the curl command line tool, it now uses TCP KEEPALIVE by default and you can change the period with --keepalive-time.

If you're talking libcurl, you need to do the TCP KEEPALIVE magic yourself. We have a patch pending that will add this logic to the library "soon".

And please, if you have anything else to ask or comment on curl, use the proper mailing list!
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Scott MacDonald | 24 Jan 20:20
Gravatar

Problem uploading to a subdirectory

I can access and upload to the default directory but if I try to list or
upload to the subfolder "in" I get errors.

The following works:

# curl -k -u user:pass --ftp-ssl ftp://ftp.url.com:2130

And returns:

drwxr-x---  2 gcs21si  System            0 Jan 24 03:36 .
drwxr-x---  2 gcs21si  System            0 Jan 10 11:45 ..
drwxr-x---  2 gcs21si  System            0 Jan 23 19:01 Archive
drwxr-x---  2 gcs21si  System            0 Jan 23 14:58 In
drwxr-x---  2 gcs21si  System            0 Jan 24 13:11 Out

# curl -k -T tfile -u user:pass --ftp-ssl ftp://ftp.url.com:2130

Also works and uploads the file.

When I try to access the subfolder "in" with either of these paths I get the
errors indicated.

# curl -k -u user:pass --ftp-ssl ftp://ftp.url.com:2130/users/user/in
I get curl: (9) Server denied you to change to the given directory

# curl -k -u user:pass --ftp-ssl ftp://ftp.url.com:2130/in
I get curl: (19) RETR response: 550

I'm able to login to the server with Filezilla and access all subfolders.

If I try to upload a file I get the following:

# curl -k -T tfile -u user:pass --ftp-ssl ftp://ftp.url.com:2130/in
I get curl: (25) Failed FTP upload: 550

Thanks in advance for any suggestions.

Scott

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html

John Wiersba | 24 Jan 16:29
Picon
Favicon
Gravatar

Curl -s misfeature

First of all, thanks for making curl available!  It's a very handy tool.

Now, the misfeature:

    curl URL >output

will display a progress bar.  That's OK for interactive use, but not ok for scripts.  Option -s will turn off the progress bar, but it also turns off displaying error messages.  Similarly, redirecting stderr to /dev/null seems to be a synonym for -s.  There should be some way of turning off the progress bar without turning off error messages.  I can't see it in the manpage.

I believe this applies to most/all versions of curl, but for reference, one of them is:

cygwin $ curl -V
curl 7.20.1 (i686-pc-cygwin) libcurl/7.20.1 OpenSSL/0.9.8r zlib/1.2.5 libidn/1.18 libssh2/1.2.5
Protocols: dict file ftp ftps http https imap imaps pop3 pop3s rtsp scp sftp smtp smtps telnet tftp
Features: IDN IPv6 Largefile NTLM SSL libz

Thanks!
-- John Wiersba
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
abhishek Kalapatapu | 23 Jan 22:01
Picon
Gravatar

Regarding Segmentation error when receiving data greater than 1000 bytes

Hello,


I am using the getinmemory.c example to store the values received from a webservice. I see that whenever I receive more than 1000 bytes, I get a segmentation fault.

Any thoughts why it must be happening. 

Thanks

--
Regards
Abhishek Kalapatapu

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Shivam Patel | 20 Jan 19:08
Picon
Gravatar

Verifying self signed certificates

Hi All,

I need to verify the server certificate for a server that sends a self signed certificate. I am using the curl command line tool.
I read  http://curl.haxx.se/mail/archive-2011-02/0049.html in which Daniel says there is no way we can do it over command line (or so I inferred).

Can someone tell me a way I can verify this certificate. As mentioned in 
http://turboflash.wordpress.com/2009/06/23/curl-adding-installing-trusting-new-self-signed-certificate/ , I added the PEM key to my CA cert store, but even that doesn't work for me. 

I reckon the problem is that I need to add the CA certificate to the certificate store (or for --cacert option) and not the Server Certificate. For self signed certificate, there is no CA - does that mean that the Certificate itself can be deemed as the CA certificate ? 

Any help will be appreciated !

Thanks - Shivam


-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Gmane