I'm trying to upload a file to a page using curl and after uploading that file i want to store the redirecting page so i can download the results.
I'm using the command:
can anybody tell me what is wrong with this command?
Last edited by Scott; 06-03-2010 at 01:45 PM..
Reason: Please use code tags
How can I write a script to submit a perl script as a cron job but only have it execute once?
After it has executed once, I would like it to automatically insert itself again into cron.
I want to avoid the situation where I schedule a cron job to run once a day, but end up with multiple... (4 Replies)
Hi all,
I am currently facing a problem when i am submitting a script to run in the background to collect statistics round the clock on an AIX box. I don't have root authority nor can I set it in cron.
So when i submit the job, it runs fine, but won't let me signoff. It prompts me that... (2 Replies)
Discussion started by: tansha
2 Replies
3. Forum Support Area for Unregistered Users & Account Problems
hello admins,
i dont use unix.com very often - but when i do have questions, i submit them at the site - but now I cannot submit anything in any forum on the site. The is the only forum i could add a new thread.
its tells me that my account could be de-righted, or that im tring to submit... (1 Reply)
Hello sir,
I worked out some features using java,shell programming and modified the bash shell. We have come up with 13 new features.
I want to know where should I submit my work so that it would be of some use to the open source professionals :confused: (1 Reply)
Discussion started by: nsharath
1 Replies
5. Post Here to Contact Site Administrators and Moderators
Dear all,
I have a simple question. I have many cut commands like below to run. I am wondering how to just type and submit all the commands at once and then each of the command will be run automaticaly one by one. Thanks a lot!
cut -d ' ' -f 3-2002 ... (4 Replies)
I am trying to write a shell script to use curl in order to automate downloading data from a website. The URL with the post form is here: http://try-db.org/de/InfoBySpecies.php .
I have a list of about 1800 different species I want to check. For Example, choose the first species and use the... (2 Replies)
hello
my script is submitting POST-data to a site
(its not my first script, i've done these before many times (include parsing scripts) but this one is tough)
so the problem is i'm submitting a form with firefox
and in firebug i see WHAT exactly i'm submitting
then
when i do EXACTLY the... (28 Replies)
Hello,
I am looking to hit a URL using curl and click on submit button so that I can get the results. The below is the code
<input name="tos_accepted" id="tos_accepted" class="button" type="submit" value="Yes, I Agree"/>
<input name="tos_discarded" id="tos_discarded"... (1 Reply)
Discussion started by: Kochappa
1 Replies
LEARN ABOUT MOJAVE
curlopt_ignore_content_length
CURLOPT_IGNORE_CONTENT_LENGTH(3) curl_easy_setopt options CURLOPT_IGNORE_CONTENT_LENGTH(3)NAME
CURLOPT_IGNORE_CONTENT_LENGTH - ignore content length
SYNOPSIS
#include <curl/curl.h>
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_IGNORE_CONTENT_LENGTH,
long ignore);
DESCRIPTION
If ignore is set to 1L, ignore the Content-Length header in the HTTP response and ignore asking for or relying on it for FTP transfers.
This is useful for HTTP with Apache 1.x (and similar servers) which will report incorrect content length for files over 2 gigabytes. If
this option is used, curl will not be able to accurately report progress, and will simply stop the download when the server ends the con-
nection.
It is also useful with FTP when for example the file is growing while the transfer is in progress which otherwise will unconditionally
cause libcurl to report error.
Only use this option if strictly necessary.
DEFAULT
0
PROTOCOLS
HTTP
EXAMPLE
CURL *curl = curl_easy_init();
if(curl) {
curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
/* we know the server is silly, ignore content-length */
curl_easy_setopt(curl, CURLOPT_IGNORE_CONTENT_LENGTH, 1L);
curl_easy_perform(curl);
}
AVAILABILITY
Added in 7.14.1. Support for FTP added in 7.46.0.
RETURN VALUE
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not.
SEE ALSO CURLOPT_HTTP_VERSION(3), CURLOPT_MAXFILESIZE_LARGE(3),
libcurl 7.54.0 February 03, 2016 CURLOPT_IGNORE_CONTENT_LENGTH(3)