10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am trying post SOAP header from file to curl command.
The curl command is
curl -vk -H "$(cat curl-test1.txt)" -X POST https://xvcfvusdgfsd.sdfjd.gf/cmsws/CMSService
The contet of curl file is
POST: https://cmsuat.chrysler.com/cmsusws/CMSService HTTP/1.1
SOAPAction:... (1 Reply)
Discussion started by: dineshaila
1 Replies
2. Shell Programming and Scripting
Hello experts!
I have a file1 with the following format (yr,day, month, hour,minute):
201201132435
201202141210
201304132030
201410100110
...
What i want to do is to assign variables and then use them in the curl command to download the text of each event from a web page.
What I have... (6 Replies)
Discussion started by: phaethon
6 Replies
3. Linux
Hi All,
could any one point out any open source test-suites for "File cache" testing and as well as performance test suites for the same. Currently my system is up with Linux/ext4.
Regards
Manish (0 Replies)
Discussion started by: hmanish
0 Replies
4. Programming
I have a simple program to create a poker deck, shuffle it and deal cards. Here it is:
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
struct Card {
char *face,
*suit;
};
void fillDeck (Card *deck, char *face, char *suit);
void shuffle (Card *deck);
void... (4 Replies)
Discussion started by: Luke Bonham
4 Replies
5. Linux
Hi all
I saw in Microsoft web site www.SysInternals.com a tool called CoreInfo from able to print out on screen the size of the Data and Instruction caches of your processor, the Locigal to Physical Processor mapping, the number of the CPU sockets. etc..
Do you know if in Linux is available a... (2 Replies)
Discussion started by: manustone
2 Replies
6. Shell Programming and Scripting
Hi ,
I have a typical situation. I have 4 files and with different headers (number of headers is varible ).
I need to make such a merged file which will have headers combined from all files (comman coluns should appear once only).
For example -
File 1
H1|H2|H3|H4
11|12|13|14
21|22|23|23... (1 Reply)
Discussion started by: marut_ashu
1 Replies
7. Shell Programming and Scripting
Hi,
I'm trying to strip all lines between two headers in a file:
### BEGIN ###
Text to remove, contains all kinds of characters
...
Antispyware-Downloadserver.com (Germany)=http://www.antispyware-downloadserver.c
om/updates/
Antispyware-Downloadserver.com #2... (3 Replies)
Discussion started by: Trones
3 Replies
8. Programming
when we are spooling query o/p to certain txt file,in that file how we can get headers in the query.(through unix shell scripting).
for exmple
q1="slect * from XXXXXX;";
sqlplus XXX/XXXX@XXXXX
spool XXXX.txt
$q1
spool off
in the text file i want the headers of the query.....
... (0 Replies)
Discussion started by: bhagya.puccha
0 Replies
9. Programming
Where can i get C/C++ headers for OS MINIX 2.0.3? (0 Replies)
Discussion started by: biosdos
0 Replies
10. UNIX for Advanced & Expert Users
hi,
What is the difference between UBC cache and Metadata cache ? where can i find UBC cache Hits and Metadata cache Hits in hp-ux?
Advanced thanx for the help. (2 Replies)
Discussion started by: sushaga
2 Replies
CURLOPT_HEADER(3) curl_easy_setopt options CURLOPT_HEADER(3)
NAME
CURLOPT_HEADER - pass headers to the data stream
SYNOPSIS
#include <curl/curl.h>
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_HEADER, long onoff);
DESCRIPTION
Pass in onoff set to 1 to tell the library to include the header in the body output for requests with this handle. This option is relevant
for protocols that actually have headers or other meta-data (like HTTP and FTP).
When asking to get the header info passed to the same callback as the body, it is not possible to accurately separate them again without
detailed knowledge about the protocol in use.
It is often better to use CURLOPT_HEADERFUNCTION(3) to get the header data separately.
While named confusingly similar, CURLOPT_HTTPHEADER(3) is used to set custom HTTP headers!
DEFAULT
0
PROTOCOLS
Most
EXAMPLE
CURL *curl = curl_easy_init();
if(curl) {
curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
curl_easy_setopt(curl, CURLOPT_HEADER, 1L);
curl_easy_perform(curl);
}
RETURN VALUE
Returns CURLE_OK.
SEE ALSO
CURLOPT_HEADERFUNCTION(3), CURLOPT_HTTPHEADER(3),
libcurl 7.54.0 February 03, 2016 CURLOPT_HEADER(3)