Hot answers tagged curl
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.
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 ...
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.
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, ...
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, ...
I found it. I must use curl -LOk and it works fine. wget command is good too.
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. ...
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 ...
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 .. ...
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 ...
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.
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.
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. ...
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 ...
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.
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.
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:firstname.lastname@example.org:port/ https_proxy = ...
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 ...
For PHP: install curl sudo apt-get install php5-curl restart apache sudo apache2ctl restart
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)... 126.96.36.199 Łączenie się z askubuntu.com (askubuntu.com)|188.8.131.52|:80... połączono. ...
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.
A pipe (represented by the | symbol) sends the standard output of one process to the standard input of another. In your case, you appear to want to use a named file so a pipe is not appropriate - specifically, there is nothing to pipe (hence the gunzip error) because the remote contents are going to a local file. Instead, you'd need to extract the name of ...
you are tying to use a http_proxy environment variable with HTTPS url https://install.meteor.com/ . To set your HTTPS proxy use HTTPS_PROXY environment variable (all upper case) from manual for curl Curl reads and understands the following environment variables: http_proxy, HTTPS_PROXY, FTP_PROXY
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
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 ...
Frantique's answer worked for me - however when I tried to upgrade my system, my package manager wanted to revert the installation back to a curl that does not have sftp/scp. To avoid having to reinstall curl with sftp/scp after every upgrade: sudo aptitude hold libcurl3 sudo aptitude hold libcurl3-gnutls Use apt-mark if you use apt. Read this page if ...
Only top voted, non community-wiki answers of a minimum length are eligible