Questions tagged [header]

This tag is deprecated because it lacks discriminating power. Please use a more specific tag instead, e.g.: html-heading, email-header etc.

This tag is deprecated because it lacks discriminating power. Please use a more specific tag instead, e.g.: , etc.

13526 questions
130
votes
4 answers

Custom HTTP Authorization Header

I was wondering if it's acceptable to put custom data in an HTTP authorization header. We're designing a RESTful API and we may need a way to specify a custom method of authorization. As an example, let's call it FIRE-TOKEN authentication. Would…
NRaf
  • 7,407
  • 13
  • 52
  • 91
130
votes
9 answers

Where to put include statements, header or source?

Should I put the includes in the header file or the source file? If the header file contains the include statements, then if I include that header file in my source, then will my source file have all of the included files that were in my header? Or…
Mohit Deshpande
  • 53,877
  • 76
  • 193
  • 251
122
votes
4 answers

Save cookies between two curl requests

I know that using cURL I can see my received cookies / headers by using curl --head www.google.com And I know that I can add headers to my request using curl --cookie "Key=Value" www.google.com I am currently working on testing an issue which…
Matt Clark
  • 27,671
  • 19
  • 68
  • 123
122
votes
2 answers

Content Transfer Encoding 7bit or 8 bit

While sending email content, it is required to set "Content Transfer Encoding" header. I observed many headers of emails that I received. Some emails using "7bit" and some are using "8bit". What is the difference between these two? Which is…
mahi
  • 1,221
  • 2
  • 9
  • 3
122
votes
5 answers

Android ListView headers

I have ListView that has some kind of events on it. Events are sorted by day, and I would like to have header with date on it for every day, and then events listen below. Here is how I populate that list: ArrayList crs = new…
Rohit Malish
  • 3,209
  • 12
  • 49
  • 67
121
votes
5 answers

Node.js: How to send headers with form data using request module?

I have code like the following: var req = require('request'); req.post('someUrl', { form: { username: 'user', password: '', opaque: 'someValue', logintype: '1'}, }, function (e, r, body) { console.log(body); }); How can I set headers…
Mike G.
  • 3,860
  • 3
  • 17
  • 18
121
votes
20 answers

Remove Server Response Header IIS7

Is there any way to remove "Server" response header from IIS7? There are some articles showing that using HttpModules we can achieve the same thing. This will be helpful if we don't have admin right to server. Also I don't want to write ISAPI…
ram
120
votes
4 answers

Should C++ function default argument values be specified in headers or .cpp source files?

I am kind of new to C++. I am having trouble setting up my headers. This is from functions.h extern void apply_surface(int, int, SDL_Surface *, SDL_Surface *,SDL_Rect *); And this is the function definition from functions.cpp void apply_surface(int…
yasar
  • 13,158
  • 28
  • 95
  • 160
120
votes
13 answers

X-Frame-Options Allow-From multiple domains

I have an ASP.NET 4.0 IIS7.5 site which I need secured using the X-Frame-Options header. I also need to enable my site pages to be iframed from my same domain as well as from my facebook app. Currently I have my site configured with a site headed…
user1340663
  • 1,201
  • 2
  • 9
  • 3
118
votes
4 answers

Pythonically add header to a csv file

I wrote a Python script merging two csv files, and now I want to add a header to the final csv. I tried following the suggestions reported here and I got the following error: expected string, float found. What is the most pythonic way to fix…
albus_c
  • 6,292
  • 14
  • 36
  • 77
116
votes
11 answers

Flutter : How to add a Header Row to a ListView

Very new to Flutter. I've been able to utilize HTTP requests for data, build a ListView, edit a Row in that List and other basics. Excellent environment. I've managed to cobble together a badly constructed Header for a ListView but I know this…
davidk
  • 1,641
  • 2
  • 11
  • 10
115
votes
3 answers

How do you remove the column name row when exporting a pandas DataFrame?

Say I import the following Excel spreadsheet into a dataframe: Val1 Val2 Val3 1 2 3 5 6 7 9 1 2 How do I delete the column name row (in this case Val1, Val2, Val3) so that I can export a csv with no column names, just the…
cmgerber
  • 2,199
  • 3
  • 16
  • 15
114
votes
8 answers

Auto generate function documentation in Visual Studio

I was wondering if there is a way (hopefully keyboard shortcut) to create auto generate function headers in visual studio. Example: Private Function Foo(ByVal param1 As String, ByVal param2 As Integer) And it would automagically become something…
Ryan M
  • 1,721
  • 2
  • 15
  • 22
111
votes
7 answers

Where does Visual Studio look for C++ header files?

I checked out a copy of a C++ application from SourceForge (HoboCopy, if you're curious) and tried to compile it. Visual Studio tells me that it can't find a particular header file. I found the file in the source tree, but where do I need to put it,…
Brian Sullivan
  • 27,513
  • 23
  • 77
  • 91
111
votes
16 answers

Splitting templated C++ classes into .hpp/.cpp files--is it possible?

I am getting errors trying to compile a C++ template class which is split between a .hpp and .cpp file: $ g++ -c -o main.o main.cpp $ g++ -c -o stack.o stack.cpp $ g++ -o main main.o stack.o main.o: In function `main': main.cpp:(.text+0xe):…
exscape
  • 2,185
  • 4
  • 21
  • 25