Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

curlopt_transfer_encoding(3) [mojave man page]

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)
Man Page

15 More Discussions You Might Find Interesting

1. Programming

Binary File Transfer

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)
Discussion started by: DPAI
2 Replies

2. Linux

HTTP server

Hello all, Please tell me that how to configure a HTTP server in Fedora Core 3 Also tell me about WEB HOSTING under Linux. (4 Replies)
Discussion started by: jaibw
4 Replies

3. SuSE

Creative Zen MicroPhoto File Transfer

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)
Discussion started by: byronfarnum
1 Replies

4. HP-UX

Transfer file from local unix server to remote server

want to remove the thread thanks (2 Replies)
Discussion started by: indira
2 Replies

5. IP Networking

File transfer using HTTP

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)
Discussion started by: jimthompson
10 Replies

6. AIX

How to use SSH Secure File Transfer tool from windows to AIX without password?

If I use SSh Secure File Transfer tool on Windows, I want to transfer file from windows to AIX without password, how to do it? (6 Replies)
Discussion started by: rainbow_bean
6 Replies

7. UNIX for Dummies Questions & Answers

Transfer contents from one unix server to another

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)
Discussion started by: chris1234
8 Replies

8. Programming

File Transfer over Sockets

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)
Discussion started by: mcnikolas
7 Replies

9. Shell Programming and Scripting

Transfer files with web based form by date

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)
Discussion started by: mrlayance
3 Replies

10. Shell Programming and Scripting

grep "226 Transfer complete" | wc -l

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)
Discussion started by: Lenora2009
9 Replies

11. Solaris

Data Transfer

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)
Discussion started by: Kjons76
2 Replies

12. Shell Programming and Scripting

search needed part in text file (awk?)

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)
Discussion started by: candyme
2 Replies

13. UNIX for Advanced & Expert Users

Transfer only modified files by SCP

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)
Discussion started by: tushar_spatil
8 Replies

14. UNIX for Dummies Questions & Answers

File Transfer From one server to another server

How to transfer a file from one sevrer to another server ? Please explain it with examples with all alternatives. (4 Replies)
Discussion started by: Awadhesh Kumar
4 Replies

15. Shell Programming and Scripting

Writing umlauts to a file

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)
Discussion started by: API
3 Replies