New answers tagged

2

-K doesn't work like that, it works like this: put -u username:password in the sample.txt file and do curl -K Sample.txt "http://localhost:4502/content/dam/my folder"


2

Remove the double-quotes from the loop items in the for lines - you're iterating over single strings ("air hgt rhum uwnd vwnd" and "00 06 12 18"), not lists of items. Also, type is a reserved word in bash. Use another variable name, e.g. t, instead. Finally, you should always double-quote your variables when you use them. Putting that all together, try ...


0

Not sure if I should answer my own question but here it goes: I bought an TP-Link TL-WR842ND and it has 8 MB of flash and it worked. So, 8 MB is needed to install cURL.


5

curl wont "wait" to interpret your Javascript because curl does not understand JavaScript; JavaScript is always done on the client side, and usually browsers have JavaScript engines/know how to run JavaScript. So curl will see it only as block as text, and leave it as it is. Please do note this behaviour is not unique to curl e.g. in the Linux command line,...


2

The domain .local is reserved for use by hosts that can be auto-discovered by the mdns protocol (broadcasts on the local network). You might get it working by installing and running avahi, or more simply by removing the mdns4_minimal [NOTFOUND=return] part from your nsswitch.conf. To test an address use eg getent hosts mywebserver.mydomain.local.


0

You don't want to insert literal quotes into the string. You just want to put quotes around the variable. I would do this: #!/bin/bash hw_data=$(/usr/sbin/system_profiler SPHardwareDataType) ram=$(grep Memory: <<<"$hw_data") model=$(grep Model <<<"$hw_data") cpuname=$(grep Processor <<<"$hw_data") cpucores=$(grep Cores: <<&...


2

The error messages are near the end; the beginning is not shown. The ldd does not show the pathnames used for linking new programs. It only shows pathnames used for running existing programs. You might be missing the development package for OpenSSL, which would include symbolic links for names ending with ".so" (which would point to the versioned library ...


1

2016 Update There is a project called Twurl - an OAuth-enabled curl for the Twitter API: Twurl is like curl, but tailored specifically for the Twitter API. It knows how to grant an access token to a client application for a specified user and then sign all requests with that access token. It also provides other development and debugging ...


3

you can use curl -L -O --retry 999 --retry-max-time 0 -C - http://url --retry 999 : retrying so many times --retry-max-time 0 : prevent it from timing out on retrying or curl -L -o 'filename' -C - http://url Update export ec=18; while [ $ec -eq 18 ]; do /usr/bin/curl -O -C - "http://www.example.com/big-archive.zip"; export ec=$?; done ...


2

The "faulty" character in the $POS parameter is EOL. HTTP uses CRLF as line ending. That gives for example: < X-POSITION: xxxxxxxx\r\n That gives field 3 in awk to be xxxxxxxx\r. By using print in awk you also re-introduce the last new-line, \n, but as your expression is not quoted, this is lost. You can see this by doing something like: curl -v "...


2

curl -o dl.html -s -m 10 --retry 0 "$URL" Note: --retry is not really necessary, but is here for completeness' and because the defaults might be set in an environment or rc file.


1

The libcurl3-gnutls (= 7.47.0-1) package come from testing and it is installed ,to fix curl's dependencies you need to downgrade libcurl3-gnutls version from 7.47 to 7.38 using aptitude (because it's more helpful than apt-get) . Open the terminal and type the following command : sudo aptitude -f install libcurl3-gnutls Follow the instructions and choose ...



Top 50 recent answers are included