Tag Info

Hot answers tagged

28

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.


12

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

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


10

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


8

The 3 packages that you found to contain curl-config:libcurl4-gnutls-dev, libcurl4-nss-dev and 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.


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

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


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

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


4

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


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

curl -s -u twitterusername:twitterpassword https://stream.twitter.com/1/statuses/sample.json -o "somefile $(date + format).txt" Where, format can be any one of the following: %a : Abbreviated weekday name (Sun..Sat) %b : Abbreviated month name (Jan..Dec) %B : Full month name, variable length (January..December) %d : Day of month (01..31) %e : Day of ...


3

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.


3

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


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


2

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.


2

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


2

You can force curl to use a specific source address with the --interface option of curl, e.g. curl --interface 2001:db8::f00:1234 http://example.com/updatedns.html


2

Answered by launchpad The documentation in /usr/share/doc/libcurl4-gnutls-dev/html/curl-config.html is indead wrong, and thus this is a documentation bug. Instead or reading on line 88: `curl-config --cc --cflags --libs` -o example example.c it should read `curl-config --cc --cflags` -o example example.c `curl-config --libs` This places the shared ...


2

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.


2

Without modifying your system files at /etc/wgetrc you could create a file at your home directory ~/.wgetrc. It will enable you to modify wget settings locally at user level. Now write the following at ~/.wgetrc to use wget behind a proxy server: use_proxy = on http_proxy = http://username:password@proxy.server.address:port/ https_proxy = ...


2

You can temporarily bypass the proxy by using the --noproxy option, e.g. curl -L https://get.rvm.io --noproxy | bash -s stable --ruby --autolibs=enable --auto-dotfiles You may need to remove proxy settings in ~/.bashrc or ~/.profile or system wide(/etc/profile, /etc/bash.bashrc etc...). Also take a look at ~/.curlrc. NOTE: if you are using GNOME ...


2

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


1

For CURL to work, it depends on some other packages. The following packages have unmet dependencies: gedit : Breaks: gedit-plugins (< 2.91) but 2.30.0-0ubuntu1 is to be installed php5-curl : Depends: php5-common (= 5.3.10-1ubuntu3.11) but 5.3.10-1ubuntu3.10 is to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages ...


1

From the comments and your output of env, you still have some proxy variables set. Execute the following commands to unset them: unset http_proxy unset ftp_proxy unset https_proxy Double check that they've been removed by: env | grep -i proxy Now try your curl command.


1

You can use the environment to store the value, and use expect's env array to retrieve it: var=$(curl -i http://www.vpnbook.com/freevpn | grep "Password: <strong>*") export passwd=${var:26:8} expect -c ' spawn sudo openvpn --config vpnbook-euro2-tcp443.ovpn expect "Enter Auth Username:" send "vpnbook" expect "Enter Password: " send ...



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