9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello eveyone.
I would like to create a simple batch with curl (or wget) to download a URL but the URL I can only download from the browser and not from shell because curl and wget won't follow the 301 redirect which I get :confused:
I tried with curl -L but no luck.
I want to hear your opinion.... (5 Replies)
Discussion started by: accolito
5 Replies
2. Programming
Hey, for the purpose of a research project I need to know if a specific type of parallel processing is being utilized by any user-run programs. Is there a way to detect whether a program either returns a value to another program at the end of execution, or just utilizes any form of parallel... (4 Replies)
Discussion started by: azar.zorn
4 Replies
3. Shell Programming and Scripting
Basically I am needing to Download (using curl) in the background some data from(link here), with stderr redirected to /dev/null, to a file named taxcode
I was doing this,
curl & http:// name here/download/pls/Title_26.txt 2> /dev/null > taxcode
but the results were not what I was after.
... (1 Reply)
Discussion started by: santod
1 Replies
4. AIX
Hi,
I have a handy script in Linux, part of which checks for the presence of nfs mounts, using the information in /proc/mounts.
Is there a suitable command or file in AIX that could be used in a similar way?
Many thanks in advance (1 Reply)
Discussion started by: SDG
1 Replies
5. Shell Programming and Scripting
hellou, can anybody help me with nat detection in real time ? i prefer some detection script because i try some nat detection program's for example p0f or i'm using tcpdump, but i would get contain of specific packet. Some ideas? (1 Reply)
Discussion started by: TheTechnic
1 Replies
6. Shell Programming and Scripting
Heloo every one
I want to write a script that detects a key press and mouse click and movement,but I dont know how.
The second one is I want to run myscript without writing the shell ie not "sh script.sh" but "script.sh"
Can you help me out of here?
Thanks in advance. (9 Replies)
Discussion started by: enoch99
9 Replies
7. UNIX for Advanced & Expert Users
Hello,
I was wondering is there a specific process I could look for to tell if my suse linux machine is still booting up. I have a monitor process and it's detecting problems with processes because I think the machine is still booting up and has yet to start everything up. Thanks for any help. (2 Replies)
Discussion started by: benefactr
2 Replies
8. IP Networking
How to get information that where is my modem configured in /dev.
I have two modems configured in my device .. one is USB and other is PCI modem.. USB is detected as /dev/USB0. but how to see about PCI modem? (0 Replies)
Discussion started by: s123.radha
0 Replies
9. UNIX for Dummies Questions & Answers
IS there virus software for unix? I worked in a Solaris environment and dont remember having anything. I also ask because the current enviroment i am working on is Microsoft and they argue that they do not use unix because of virus detection. Any input would be greatly appreciated. (1 Reply)
Discussion started by: pbonilla
1 Replies
curl_easy_escape(3) libcurl Manual curl_easy_escape(3)
NAME
curl_easy_escape - URL encodes the given string
SYNOPSIS
#include <curl/curl.h>
char *curl_easy_escape( CURL *curl, const char *string , int length );
DESCRIPTION
This function converts the given input string to a URL encoded string and returns that as a new allocated string. All input characters that
are not a-z, A-Z, 0-9, '-', '.', '_' or '~' are converted to their "URL escaped" version (%NN where NN is a two-digit hexadecimal number).
If length is set to 0 (zero), curl_easy_escape(3) uses strlen() on the input string to find out the size.
You must curl_free(3) the returned string when you're done with it.
AVAILABILITY
Added in 7.15.4 and replaces the old curl_escape(3) function.
RETURN VALUE
A pointer to a zero terminated string or NULL if it failed.
EXAMPLE
CURL *curl = curl_easy_init();
if(curl) {
char *output = curl_easy_escape(curl, "data to convert", 15);
if(output) {
printf("Encoded: %s
", output);
curl_free(output);
}
}
SEE ALSO
curl_easy_unescape(3), curl_free(3), RFC3986
libcurl 7.54.0 February 03, 2016 curl_easy_escape(3)