CURLOPT_TRANSFER_ENCODING(3) curl_easy_setopt options CURLOPT_TRANSFER_ENCODING(3)NAME
CURLOPT_TRANSFER_ENCODING - ask for HTTP Transfer Encoding
SYNOPSIS
#include <curl/curl.h>
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_TRANSFER_ENCODING, long enable);
DESCRIPTION
Pass a long set to 1 to enable or 0 to disable.
Adds a request for compressed Transfer Encoding in the outgoing HTTP request. If the server supports this and so desires, it can respond
with the HTTP response sent using a compressed Transfer-Encoding that will be automatically uncompressed by libcurl on reception.
Transfer-Encoding differs slightly from the Content-Encoding you ask for with CURLOPT_ACCEPT_ENCODING(3) in that a Transfer-Encoding is
strictly meant to be for the transfer and thus MUST be decoded before the data arrives in the client. Traditionally, Transfer-Encoding has
been much less used and supported by both HTTP clients and HTTP servers.
DEFAULT
0
PROTOCOLS
HTTP
EXAMPLE
TODO
AVAILABILITY
Added in 7.21.6
RETURN VALUE
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not.
SEE ALSO CURLOPT_ACCEPT_ENCODING(3), CURLOPT_HTTP_TRANSFER_DECODING(3),
libcurl 7.54.0 May 02, 2016 CURLOPT_TRANSFER_ENCODING(3)
Check Out this Related Man Page
CURLOPT_HTTPGET(3) curl_easy_setopt options CURLOPT_HTTPGET(3)NAME
CURLOPT_HTTPGET - ask for a HTTP GET request
SYNOPSIS
#include <curl/curl.h>
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_HTTPGET, long useget);
DESCRIPTION
Pass a long. If useget is 1, this forces the HTTP request to get back to using GET. Usable if a POST, HEAD, PUT, etc has been used previ-
ously using the same curl handle.
When setting CURLOPT_HTTPGET(3) to 1, it will automatically set CURLOPT_NOBODY(3) to 0 and CURLOPT_UPLOAD(3) to 0.
DEFAULT
0
PROTOCOLS
HTTP(S)
EXAMPLE
curl = curl_easy_init();
if(curl) {
curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
/* use a GET to fetch this */
curl_easy_setopt(curl, CURLOPT_HTTPGET, 1L);
/* Perform the request */
curl_easy_perform(curl);
}
AVAILABILITY
Along with HTTP
RETURN VALUE
Returns CURLE_OK if HTTP is supported, and CURLE_UNKNOWN_OPTION if not.
SEE ALSO CURLOPT_NOBODY(3), CURLOPT_UPLOAD(3),
libcurl 7.54.0 February 03, 2016 CURLOPT_HTTPGET(3)
I have written a program in C to transfer files between 2 machines . The program uses UDP . At the server the file is saved in the current directory using fwrite . Everything seems to be working exept for one problem . The binary files gets corrupted on the server . Thats is doing a diff of the... (2 Replies)
hello
I need help finding a file transfer program for suse linux compatible with a creative zen microphoto. I have tried kzenexplorer but it doesn't work. Any suggestions would be much appreciated. Thanks. (1 Reply)
I have Apache running on a Solaris server. Does anyone know how I go about using HTTP for a file transfer ( or I guess more properly termed in HTTP as a document transfer ) ? I have a requirement that restricts my file transfer options to HTTP only !
Is there any changes I need to make to the... (10 Replies)
Hi Guys,
Well i dont have alot of experience in shell scripting. I am mostly into OOP. So i was given a task to
"Transfer the contents of files in a zip format from one unix server to another unix server"
What i am trying to do is create a shell script when runs will transfer all the... (8 Replies)
Hello there !!!!!!!!! I got some problems trying to transfer a file through sockets.
The Server must be in Java and the Client in C++
I came up with this code for the server :
BufferedInputStream input;
BufferedOutputStream output;
public void send_data() throws IOException
{
... (7 Replies)
Not sure how I should approach this one.
I have server X and Server Y. X is a collector. All files are seperated by hour. Y is used strictly for analysis. I do not always need all files from X. Sometimes other people use Y for analysis and do not always know how to transfer the files from... (3 Replies)
echo $ftp_ctr returns '0' instead of '1'. Please help
331 Enter password
230 User logged in
200 Transfer mode set to BINARY
local: file1 remote: file2
227 Entering Passive Mode (xxxxxxxx).
125 Uploading in BINARY file xxx
226 Transfer completed
24453780 bytes sent in 67 seconds... (9 Replies)
We have a data on the disk that was copied from HP N4000 running HPUX 11.11 and it was created with vxfs version 4.
We need to transfer this data to Sun server, how might this be done? (2 Replies)
Hello!
I have text file:
From aaa@bbb Fri Jun 1 10:04:29 2010
--____OSPHWOJQGRPHNTTXKYGR____
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
My code '234565'. ... (2 Replies)
Hi all,
I want to transfer only modified files from one unix server to another unix sever ,tried hard but not succeeded please help me out to resolve it. The script is as below :wall:
ssh user@hostname <<EOT >files.txt
cd /x/y
find . -mtime -0 -type f |\
while read file
do
echo $file... (8 Replies)
Hello all,
I have a strange Problem with writing umlauts like (ä, ü) to a file, which has an ISO-8859-1 Encoding.
My Shell-script is reading a file. The Encoding differs. Sometimes US-ASCII, UTF-8, ISO-8859-1. Then a I have to replace all "{" with a "ä".
I am reading the file line by line... (3 Replies)