Tag Info

Hot answers tagged

43

apt-get install libcurl4-gnutls-dev or apt-get install libcurl4-openssl-dev depending on whether you want to use gnutls or openssl for SSL.


22

The 3 packages that you found to contain curl-config: libcurl4-gnutls-dev libcurl4-nss-dev libcurl4-openssl-dev All seem to have the same functionality. I installed the first of these via Synaptic Package Manager and was then able to install RCurl from CRAN. So, if you choose the first option, open a terminal box and do sudo apt-get install ...


19

Answers to the different updates First question You need the command sudo apt-get install curl The install is missing in the command you use: sudo apt-get curl won't work because apt-get does not have a command curl. First update Also you want to run update first: sudo apt-get update And you might want to consider using this command: sudo apt-get ...


11

CURL is needed for rvm, specifically it is used for the installer script (which is made to be 'run everywhere'), and since Mac doesn't ship with wget but does with curl, they use curl. From CURL man page curl is a tool to transfer data from or to a server, using one of the supported protocols (DICT, FILE, FTP, FTPS, GOPHER, HTTP, HTTPS, IMAP, ...


11

There are many ways, of course, but I start with one which is simple to explain: it just requires some command line magic. I assume that there is internet connection (check it for example with ping -c 5 google.com. Also, I assume that /my/file is the location of file you would like to submit, and JohnDoe is your askubuntu nickname. The simplest of it all, ...


8

I found it. I must use curl -LOk and it works fine. wget command is good too.


7

Workaround if apt-get still works behind the proxy add sources manually to /etc/apt/sources.list add gpg key Adding sources manually I think on launchpad.net every ppa still contains a small description how to add sources manually. The launchpad site for your mentioned ppa ppa:nilarimogard/webupd8 is https://launchpad.net/~nilarimogard/+archive/webupd8. ...


6

For PHP: install curl sudo apt-get install php5-curl restart apache sudo apache2ctl restart


5

Actually it seems to be much easier than the answer posted previously. You just need "sudo" to know that you are behind a proxy and it will work effortlessly. To do this, you need to export your proxy for http and https the way you usually do: export http_proxy=http://username:password@host:port/ export https_proxy=https://username:password@host:port/ and ...


5

You have to compile curl with sftp support first. Download and unpack the curl source. After that: sudo apt-get install build-essential debhelper libssh2-1-dev sudo apt-get source libcurl3 sudo apt-get build-dep libcurl3 cd curl-x.xx.x/debian nano rules find and replace "--without-libssh2" with "--with-libssh2" cd .. sudo dpkg-buildpackage cd .. ...


5

By default, the filename of the URL is used as the target filename. If redirection occurs, it is preferable to use the final filename. That can be accomplished with the --trust-server-names option of wget: wget --trust-server-names http://example.com/file.php From the manual page of wget: --trust-server-names If this is set to on, on a redirect the ...


5

@muru is correct, however if you are trying to send a json encoding your base64 data may be too large for the command line and you may prefer something like this: (echo -n '{"image": "'; base64 ~/Pictures/1.jpg; echo '"}') | curl -H "Content-Type: application/json" -d @- http://some/url/ The -X POST is implied by -d.


4

As you can read on the curl manpage -i, --include (HTTP) Include the HTTP-header in the output. The HTTP-header includes things like server-name, date of the document, HTTP-version and more... Your command should be: curl -u $authentication -H $content_type --digest -X POST $url --data $parameters


4

I solved it by installing libcurl4-openssl-dev sudo apt-get install libcurl4-openssl-dev


4

Easiest way to bash login: wget --save-cookies cookies.txt --keep-session-cookies --post-data="username=foo&password=bar" "http://some.site/login.php" Although some websites may have some restrictions to login like this.


4

You can try this even in Yahoo prompt bash ... you will get a login accepted curl --user name:password http://mail.yahoo.com -v curl is the way to do it in bash.


4

This is a known bug in wget 1.12. As you are running an unsupported version of ubuntu the best course of action would be to upgrade to a supported version . wget 1.14 is the latest version in ubuntu and has fixed this bug.


4

On ubuntu/debian, this file is in /etc/ssl/certs/ca-certificates.crt. You could symlink it. The /etc/pki/ path is used on Redhat.


4

You can try typing: wget --spider It gives for example: Tryb spider włączony. Sprawdź czy zdalny plik istnieje. --2013-12-12 20:37:17-- http://askubuntu.com/questions/389910/get-the-size-of-a-remote-file-from-terminal Translacja askubuntu.com (askubuntu.com)... 198.252.206.24 Łączenie się z askubuntu.com (askubuntu.com)|198.252.206.24|:80... połączono. ...


4

If you want to download the file use wget [option]... [URL]... instead. For more information regarding the options, just type this into your Terminal: man wget For you purpose: wget http://github.com/ziyaddin/xampp/archive/master.zip Note that the .zip file will be saved in the current directory you are in.


4

What it means is that you don't have curl installed and you need to install curl to use it. This can be done by going to a terminal CTRL + ALT + T then entering sudo apt-get install curl to install curl and sudo apt-get install php5-cli to install php cli. This can be done in one line of code which is sudo apt-get install curl && sudo apt-get ...


3

You need to specify the directory where OpenSSL is installed (your symlink is neither necessary nor sufficient) ./configure --with-ssl=/usr/local/ssl EDIT: Alternatively, you can set your PKG_CONFIG_PATH environment variable (as suggested by ./configure --help): PKG_CONFIG_PATH=/usr/local/ssl/lib/pkgconfig ./configure


3

the -e option allows you to provide commands as in wgetrc at the command line so you do not need to change a file ... wget -e use_proxy=yes -e http_proxy=$proxy http://askubuntu.com


3

Bash is interpreting the URL. The < and & mean things to it so they're being ripped around and aren't being passed to lynx. The simple answer is to quote the url: lynx -accept_all_cookies 'https://github.com/search?q=jquery+stars%3A>10+forks%3A<10&type=Repositories' I'm using single quotes here so that even $ isn't interpreted.


3

Add a shebang line and explicitly use bash (on Ubuntu /bin/sh links to dash). #!/usr/bin/env bash or #!/bin/bash The first will search the environment for bash.


3

I have been using ppa:ondrej/php5 for PHP. This PPA includes php5-curl and FYI: $ php --version PHP 5.5.12-2+deb.sury.org~precise+1 (cli) In case you aren't aware, adding the PPA will update all PHP packages installed on your system to the latest in the PPA, assuming the PPA has a more recent version. Best performed on a test machine. If you are like ...


3

For the most part, software installed from the repository can and sometimes will overwrite source-built software. If you want to stop this from happening (i.e. have another source built version lingering on your system, and easy to remove), then continue reading. It is always advisable to set up the source build so that it installs to a different directory. ...


3

Try wget instead of curl: wget http://github.com/ziyaddin/xampp/archive/master.zip



Only top voted, non community-wiki answers of a minimum length are eligible