Most voted "header" questions
97 questions
Sort by count of
-
25
votes1
answer18896
viewsWhat is Connection Keep-Alive?
When I check the headers I’m sending on a php page, which is installed locally, I always see this Connection: Keep-Alive. Example: var_dump(getallheaders()); Exit: array (size=7) 'Host' => string…
-
10
votes2
answers664
viewsRedirection: Location vs Refresh
When to use Location and Refresh to redirect. header( "Location: www.dominio.com" , TRUE , 302 ) header( "Refresh:5; url=www.dominio.com" , TRUE , 302 ) Both options produce the same result:…
-
9
votes2
answers5167
viewsWhat is "stdafx. h" and what is its importance?
When creating a C++ project in Visual Studio, it automatically brings a line into the main file: #include "stdafx.h" How I am at the beginning of the study of language, seeing some "hello world",…
-
5
votes1
answer1015
viewsWhy is it recommended to place Javascript codes at the end of the body tag scope?
Do you have any rules regarding the use of scripts in tag <head>? W3C did not make the rules of use very clear.
-
5
votes2
answers15519
viewsIndefinite reference of functions
I have a problem related to modularization of my project. Do not pay too much attention to the logic of the program, because the biggest problem I face is the fact that the program does not compile.…
-
5
votes2
answers1637
viewsForce text to be downloaded in a format accepted by Msword with PHP?
I’d like to know how to force the download of a file, with some extension accepted by Microsoft Word, through function header. I searched a few times, tested the MIME types I found, like the ones…
-
5
votes3
answers8881
viewsHow to import functions from another C file?
In Java if we create other classes, for example: classe1 and classe2, if I want to call classe1 within the classe2 (because they are in separate files) I use import classe1. I made this code in C,…
-
4
votes1
answer9877
viewsPut Authorization: Basic in the api
I am creating an API as already said, and I need to use the Authorization: Basic KEY to send login and password via header. Unfortunately I am not aware header('Authorization: Basic…
-
4
votes1
answer151
viewsHeader cannot find past destination
I’m working on a project and function header cannot locate the destination passed to it. I have the following folder structure: On a certain form, I pass a action for: <form method="post"…
-
4
votes1
answer124
views -
4
votes2
answers37
viewsNavbar does not hide the div title when item is clicked
How do I make the fixed header not hide the elements? I’m using bootstrap 4 for a navbar. Here, for example, I have a fixed header and some Divs with titles. When I click on an item, it redirects…
-
4
votes0
answers182
viewsChrome and Opera do not respect cache
Chrome and Opera (same engine as the first) does not respect headers Cache-control and Expires, I mean if it’s a link or interaction within the page works normally, this appears ahead: But if the…
-
4
votes1
answer73
viewsWhy is it that when I include my . h header, the . c implementation is not included as well?
I have three files, produtos.h, produtos.c and main.c. produtos.h is located in the folder "headers", produtos.c is located in "sources" and main.c is in the same folder as "headers" and "sources",…
-
4
votes1
answer203
viewsFunction "strcmp()" working without adding "string. h"
I wrote an algorithm in C that uses the function strcmp(). Even forgetting to add the string.h the algorithm worked. I would like to understand how it worked since I only found this function in the…
-
3
votes3
answers1367
viewsHow to send my login and password via $.ajax
Hello, I have a link where it opens a modal window (as if it were an "Alert") to enter the login and password. I am using jQuery, the $.ajax{} function to be more specific. I would like to know how…
-
3
votes1
answer1087
viewsHow to add a custom header in AJAX with pure javascript?
I am using pure javascript to send an AJAX with the Access_token header with a key inside, because the web-service asks for this request... but it is not going as I would like. I want you to stay…
-
3
votes1
answer2162
viewsCreate new PDF from existing PDF with PHP
I’m with a project that I need to add header/footer/watermark, dynamically in existing PDF files, via PHP language. I’ve done a lot of research and I still can’t find a way to do this. You can edit…
-
3
votes2
answers340
viewsHow to create fixed header without javascript?
I want to create a header in an html page, responsive style that adapts the mobile platform and the page reduction in the browser, as I do? Note: Nothing I read on the internet at the time was use,…
-
3
votes1
answer5335
viewsI need to create header and footer fixed for all pages
I’m a beginner in programming and I’m not able to insert header and footer fixed on all pages of the site. I saw here on the site an option with Renderboy and Rendersection but I confess that I did…
-
2
votes1
answer99
viewsWhen including a header file, does the compiler include all functions in the final program or only the functions used?
That is, the executable will have the entire library in it or only the functions I use will be included by the compiler ? With this, including many libraries can make the program heavy (taking up…
-
2
votes1
answer175
viewsUsing Header from another Wordpress site
I need to develop a site in Wordpress, where I have to use the header (menu) of another site also in Wordpress. One solution I found was to soak the same via Iframe, however, would have a delay a…
-
2
votes1
answer883
viewsCapture SOAP Header with PHP
Good Afternoon I am consuming a WSDL of a Webservice where after login and after each request as XML returned below me is presented the following tags in the head of Soap <Sequencia> 1 </…
-
2
votes1
answer51
viewsHeader does not work
Boa Pessoal, I have a php file that is named after filling a form in an html file. The function of this php file is to add data to the database and after inserting it has the following code:…
-
2
votes2
answers1898
viewsMessage to user after header change
I have a small problem with PHP, I need to redirect the user, but I wanted to notify you of what happened, I redirect you with the header(), but if I try to send something before the header failure,…
-
2
votes0
answers433
viewsWhat is the difference between . h and . hpp and when to use (C++)
Files . h are used in C/C++ as header files where all their contents are automatically passed to another file. cpp and your choice using the command: #include <arquivo.h> But recently I saw a…
-
2
votes1
answer253
viewsCreating images with text 'imagecreate()'
This is going to be quite difficult to understand, because I don’t have a very dynamic explanation. I will try to be as clear as possible! I want to create an identical letter generator to this:…
-
2
votes1
answer226
viewsMeaning of . CH in the Clipper and ADVPL languages?
When we use a language like Clipper or ADVPL, we usually use libraries (includes) .CH, I STILL DON’T KNOW WHAT IT MEANS. In C language, these header files have the suffix . H, which means Header…
-
2
votes2
answers1619
viewsAbout headers in C++
Some doubts have arisen specifically about the creation of headers: If I create a test file. h, and another test.cpp, as the C++ compiler does to relate the test.cpp file to the test file. h, that…
-
2
votes1
answer810
viewsCreation of a Header that is used in the communication of a Webapi
I am creating a program that communicates with a webapi and is giving me this error in creating the header. I’m using this to create the header : var tempo =…
-
2
votes2
answers42
viewsHow to create a date header but in the form of ISO 8601
I’m creating a communication with a web api and I needed to create a header date type but formatted to ISO 8601. What I want is to get the following output : Date: 2017-09-13T08:21:08Z My code is…
-
2
votes1
answer85
viewsDifference in true and false in header('Location: ') function in PHP
I was reading some articles about page redirection with the header() function, and came across two examples to use the function: 1) <?php header('Location: endereço', **true**, 301); exit();…
-
2
votes1
answer90
viewsHeader files in C++ using more than once
I am developing a cross-platform project (Windows - Linux - Macos). During its development and while generating documentation (via Doxygen) I realized that there are many files *.h to be called by…
-
2
votes1
answer180
viewsOn the inclusion of headers (.h) and due compilation
Assuming I create a file .h for the specification of a function func. h #ifndef FUNC_H #define FUNC_H int xPy(int x, int y); #endif //FUNC_H and then created the implementation of this function in a…
-
2
votes1
answer710
viewsCSS: Header and body positioning
Talk people, I’m dealing with CSS for a personal blog that I intend to create. But I’m having trouble understanding some aspects of positioning. Below is an initial version of the blog: <head>…
-
2
votes1
answer43
viewsLogin redirects to action instead of header
Hello, I am making a login page but it is not redirecting the way I would like, using the header, instead when I click in it goes to the form action. The problem file is this one(postlogin.php):…
-
1
votes0
answers46
viewsProblem with header
I had this code running on my PC’s localhost but when I put it on the server it no longer runs. When I call the function verificaLoginAdmin() he always returns: Warning: Cannot Modify header…
-
1
votes2
answers116
viewsWhat is the appropriate http code to respond to the contents of an image?
Well, the question is quite straightforward. I want to use PHP to answer the content of an image. However, I would like to know if the http status type will have any impact on the client (for…
-
1
votes0
answers73
viewsEnd of script output before headers - Perl
Why so: print "Content-type: text/html\n\n"; print "<H1>Hello World</H1>\n"; Works! And so: my $tpl = HTML::Template->new(filename => 'index.html'); print "Content-Type:…
-
1
votes0
answers166
viewsHeader and Footer in all reports - Reportviewer
How to put standard header and footer in all Reportviewer reports of my Asp.net application?
-
1
votes1
answer81
viewsIs it possible to extract the header from a DLL? If so, how?
It is possible to extract header of a dll? Is this practice possible? If so, how can I?
-
1
votes1
answer160
viewsHow to export and download EXCEL file?
I am generating an EXCEL spreadsheet through a function Function, Everything is done correctly. The file is generated in the ROOT folder of my application, however, I would like to know if it is…
-
1
votes0
answers58
viewsForce download with Header does not work in PHP
I use this code to force download, it works perfect when I run it on XAMPP, however it returns corrupted file when running on ubuntu, what can I do to fix? header('Content-Length: ' .…
-
1
votes1
answer403
viewsError to popular google chart Charts
I’m facing the following mistake: VM3611:231 Uncaught Error: Unknown header type: 6 Code: google.charts.load('current', {'packages': ['corechart']}); google.charts.setOnLoadCallback(drawChart);…
-
1
votes2
answers5472
views -
1
votes0
answers183
viewsChange IONIC 3 ion-header/ion-navbar height on Android
I wonder how I do in Ionic 3 to leave the header of android equal to IOS, IE, occupying all the top space without appearing, that part of the room where appears the mobile information( time, battery…
-
1
votes0
answers18
viewsImages in header using docx4J
I am using docx4j and all the images I try to put in the Word file header, can not load the image. Does anyone know why? When I insert the image into the body of the document, the image is normally…
-
1
votes1
answer40
viewsC++: Error with Function Template
I created a function using feedback as demonstrated in that reply, in this way: utilits. h ... template<typename T> bool theres(T a, vector<T> b); ... cpp utilities. ...…
-
1
votes1
answer34
viewsapp.set('x-powered-by', false) does not work on expressjs
Hello, in my main code of my app, with the use of express, I’m trying to remove the "x-powered-by" header, and I’ve used so much app.disable("x-powered-by") how much app.set("x-powered-by", false)…
-
1
votes1
answer64
viewsHeader fixed over subtitle by clicking on a content index anchor
I have a fixed header at the top of the page, which calls a index, this index allows you to navigate the text using anchor, the point is that when I click on an item of the index, navigate to the…
-
1
votes1
answer380
viewsHeader with responsive bg
I’m starting a project right now and I want to make the header responsive, but I can’t. The header has an effect in js that changes the images every refresh, but I can’t assign the correct height to…