header

Edit file download info PHP/JS

Hey, I'm trying to change the name of a file being downloaded through my site off an external server. Currently whenever I modify the header information, it just takes a reallllllyyyyyy long time for the download to start, so is there any way to do it without changing the headers? Or if not any reason why it would be taking forever to l...

Using header("Location") from a template include file / Process include and save in variable

I am trying to figure out a way to do this: I want to have a core template file (structure.php): <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> <?php include_once(NAKIDROOT."includes/head.php"); ?> </head>...

System.Net.Mail.MailMessage "Reply-To" header is ignored in IIS 6.0 but OK in IIS 5.1

I have a web app project developed and unit-tested on a WinXP machine (IIS 5.1). It has been published to a Win2003Server (IIS 6.0). One feature of the app sends an email with a "Reply-To" header (snippet follows). On the IIS 5.1 machine, the Reply-To appears properly in the header. When sent from the IIS 6.0 PC, the header does not cont...

What is purpose of _p.h files?

In Qt Source files, there are two versions of header files, such as: qxmlstream.h qxmlstream_p.h Why are there _p.h files? ...

How do I store my websites header and footer in one location?

I am always rewriting my headers and footers and for every edit i have to manually copy and paste all the code into the web pages. Obviously this is the wrong approach but im not sure of the right one. My current idea is to have a "header" and "footer" div and then with jquery's $(document).ready load the divs with code. Im afraid it wil...

Perl: Read MANIFEST.MF file from Java .jar file

I'm trying to figure out how to read the META-INF/MANIFEST.MF file form a java jar file in perl. I'm attempting to use Mail::Header in order to separate the properties in the manifest. This works fine if the manifest file is already extracted from the jar, but I'm trying to figure out how to extract the manifest into memory and then imme...

PHP Excel Output for IE gives empty file.

Hi all, I am trying to generate an excel file with php. This works fine in Firefox but with IE I am only getting an empty file. This is what I am doing basically: header('Content-type: application/ms-excel'); header('Content-Disposition: inline; attachment; filename='.$filename); echo $data; I have tried various header settings but ...

Invoke OCaml compiler to just produce .cmi

Hello, maybe I'm just failing in a really simple thing but I'm developing an intepreter written in OCaml with standard tools as ocamllex and ocamlyacc and I have this situation: iparser.mly contains parser spec ilexer.mll contains lexer spec impossible.ml contains the vm that executes the code and all the types needed The instruction...

Adding Custom WCF header to Endpoint Programatically for Reliable Sessions

I'm building a WCF router and my client uses Reliable Sessions. In this scenario when the client opens a channel a message is sent (establishing a Reliable Session?). Its contents is as follows: <s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing"&gt; <s:Header> <a:Action s:m...

Problem with structures, where to put them and how to reference them in headers?

OK, I'm in a dilemma right now, and neither my knowledge of C (which isn't the biggest one anyways) nor the almighty Google seem to be able to help me with this: I have some structures for a game prototype: Map (Uhhm... the Map..) Chara (A base for Enemies the Players) Player (The Player) Now the problem is: Map needs a refere...

Consistenty header file names between C++ libraries

In my project I use two libraries, v8 and boost. Boost uses the .hpp extension for its headers, while v8 uses the .h extension for its headers. In the end of day, my source code starts like that: #include "v8.h" #include "boost/filesystem.hpp" ... In other question I asked about this subject, the general answer was that it is okay, b...

Axis security header

Hi trying to generate a security header in a Java Axis2 Client program in the format of. <soapenv:Header> <wsse:Security xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/04/secext&gt; <wsse:UsernameToken> <wsse:Username>myUsername</wsse:Username> <wsse:Password>myPassword</wsse:Password> </wsse:UsernameToken> </wsse:Security> ...

How to make only the header of the tabitem respond to the mouse event

I'm trying to make only the header of the TabItem send an event. So far I have my xaml... <TabControl> <TabItem Header="tab 1"> Any text </TabItem> <TabItem Header="tab 2"> <TextBox>blah</TextBox> </TabItem> <TabControl.Resources> <Style TargetType="Ta...

Retrieve Http Headers from the SyndicationFeed helper class

I'm using the SyndicationFeed helper class to request and parse a Twitter RSS feed. I just discovered that I'm actually using the Twitter REST API by requesting RSS feed data. There's a limit to the number of requests per hour and that limit is actually returned in a response header called X-RateLimit-Remaining. I'd like to get that numb...

PHP: Can't change 404 status code, but there is no error from header()

I'm processing unavaliable pages in my custom PHP website. To do this I created a .htaccess file with this single line: ErrorDocument 404 /index.php At the beginning of index.php I placed this code: header($_SERVER['SERVER_PROTOCOL'].' 200 OK', true, 200); This works perfect in my WAMP environment. I'm checking http headers, and it...

Add headers to a file

I have a file containing data like below: 88_NPDJ 565 789 3434 54454 98HGJDN 945 453 3453 23423 ... ... ... whats the best way to add headers to the file? After data has been entered into the file. The data is tab delimited. ...

unable to get response headers using apache httpclient 3.0.1

Hello, I have created a sample application in Java with sending POST request to a asp.net web page "mypage.aspx". This apsx page sending back some response and 1 headers to check its valid or not. Aspx page set headers like Response.AddHeader("my-source", "lmenaria.com"); In my Java program: Header[] headers = method.getResponseHe...

Show Curl POST Request Headers? Is there a way to do this?

I'm building a Curl web automation app and am having some issue with not getting the desired outcome of my POST action, I am having some trouble figuring out how I can show the full POST request I am sending over (with headers), I have been searching on this but everything that comes up is the response headers, actually I want these too ...

Fixed grid header inside usercontrol in silverlight 4.0

Hi, I'm face to a problem really hard to solve and I found nothing in internet. I have a control used in parts of the application that is a customized grid. My problem is that in a part of the application. They put a scrollViwer to make it scrollable and they asked me to fix the header row to make it always visible. I found solution ...

Question about Curl SSL certificates, encryption

I'm working on a web task automation with curl and not getting the result I want, its for a SSL connection and currently I have Curl set to: curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); As I understand it, this means it will just blindly accept any SSL certificate, however what I am unable to understand and seemingly find info on, is ...