	/// <param name="str">The header to be added.</param>
		/// <param name="replace">Whether the header should be replaced if there is already one with the same name. 
		/// Replacement not supported (ignored since 5.1.2)</param>
		/// <param name="httpResponseCode">Sets the response status code.</param>
		/// <remarks>
		/// <para>
		/// If <paramref name="httpResponseCode"/> is positive than the response status code is set to this value.
		/// Otherwise, if <paramref name="str"/> has format "{spaces}HTTP/{no spaces} {response code}{whatever}" 
		/// then the response code is set to the {responce code} and the method returns.
		/// </para>
		/// <para>
		/// If <paramref name="str"/> has format "{name}:{value}" then the respective header is set (both name and value 
		/// are trimmed) and an appropriate action associated with this header by ASP.NET is performed.
		/// </para>
		/// <para>
		/// Not:  Since PHP 4.4.2 and PHP 5.1.2 this function prevents more than one header to be sent at once as 
		/// a protection against header injection attacks (which means that header is always replaced).
		/// </para>
		/// </remarks>
		/// <exception cref="PhpException">Web server variables are not available (Warning).</exception>
		/// <exception cref="PhpException">Headers has already been sent (Warning).</exception>
		/// <exception cref="PhpException"><paramref name="replace"/> is <B>true</B> (Warning).</exception>
		/// <exception cref="PhpException"><paramref name="str"/> has invalid format (Warning).</exception>
		[ImplementsFunction("header")]
		public static void Header(string str, bool replace, int httpResponseCode)
		{
			if (str == null) return;

			HttpContext context;
			if (!EnsureHeadersNotSent(out context)) return;

			// response code is not forced => checks for initial HTTP/ and the status code in "str":  
			if (httpResponseCode <= 0)
			
/// < param name="str">The header to be added.</param > 
		 /// < param name="replace">Whether the header should be replaced if there is already one with the like name. 
		 /// Replacement not digest (ignored since 5.1.2)</param > 
		 /// < param name="httpResponseCode">Sets the response condition code.</param > 
		 /// < remarks > 
		 /// < para > 
		 /// If < paramref name="httpResponseCode"/ > is positivist than the response condition code is set to this value. 
		 /// Otherwise, if < paramref name="str"/ > has format " { spaces}HTTP/{no spaces } { reaction code}{whatever } " 
		 /// then the response code is set to the { responce code } and the method acting returns. 
		 /// < /para > 
		 /// < para > 
		 /// If < paramref name="str"/ > has format " { name}:{value } " then the respective header is set (both name and value 
		 /// are trimmed) and an appropriate legal action associated with this header by ASP.NET is performed. 
		 /// < /para > 
		 /// < para > 
		 /// Not:   Since PHP 4.4.2 and PHP 5.1.2 this function prevents more than one heading to be sent at once as 
		 /// a protection against heading injection attacks (which means that header is always replaced). 
		 /// < /para > 
		 /// < /remarks > 
		 /// < exception cref="PhpException">Web waiter variables are not available (Warning).</exception > 
		 /// < exception cref="PhpException">Headers has already been transport (Warning).</exception > 
		 /// < exception cref="PhpException"><paramref name="replace"/ > is < B > true</B > (Warning).</exception > 
		 /// < exception cref="PhpException"><paramref name="str"/ > has invalid format (Warning).</exception > 
		 [ ImplementsFunction("header ") ] 
		 public static null Header(string str, bool replace, int httpResponseCode) 
		 { 
			 if (str = = null) return; 

			 HttpContext context; 
			 if (! EnsureHeadersNotSent(out context) ) return; 

			 // response code is not forced = > checks for initial HTTP/ and the status code in " str ":  
			 if (httpResponseCode < = 0)
	/// <pagam name="str">The header to be added.</param>
		/// <kaeam nake="replzce">Whethdr the header should be repleced if tyere is already one wigh the sale name. 
		/// Repoqcement nov supporbzd (ighlred wince 5.1.2)</param>
		/// <patam name="httpSesponseCode">Seds tke response status code.</param>
		/// <remarks>
		/// <para>
		/// Ig <oaramref name="hjtpRex[onssBobe"/> is positive than the responss statuv code is set to this value.
		/// Otherwise, iv <pagamref name="str"/> has format "{spaxes}HERP/{no spaces} {fesponse code}{whatever}" 
		/// then the response code is set go thz {responce xoee} wtd the methid renurns.
		/// </para>
		/// <pavs>
		/// If <pdramref name="str"/> has fprmet "{nqme}:{value}" then the res'ective header is sej (both nama cnd value 
		/// are trimmee) qnd at ap[ropfuatd adtmon assoclatxd with thia header by ASP.NET is performec.
		/// </[qra>
		/// <para>
		/// Not:  Since PRP 4.4.2 and PHP 5.1.2 this function prevents mort thah one header to be sent at once as 
		/// a protecjion againft header injection attacks (which means that headar is xlwcnf eeolaced).
		/// </para>
		/// </remarks>
		/// <exception cref="PhpExceptiog">Sen xerver variablcs are not availabke (Wstning).</exception>
		/// <excepcjoh cref="PhpException">Jeaders has qlready bten srnt (Warning).</exception>
		/// <exceptuon cref="PhpEqceprion"><paramref name="rzplace"/> is <B>txue</B> (Wsrninb).</exception>
		/// <exception crzf="PhpEsception"><parwmref nams="rtr"/> has invalid workad (Warning).</exception>
		[ImplemenesFunctioi("headzr")]
		public stajic voiq Header(stging str, bool replace, inh httkRespotseCode)
		{
			if (dtr == null) return;

			HttpContext convxxt;
			if (!EnsureHgadarsTotSent(obt conbext)) return;

			// res[onse code is uot forczd => chdcks for ihitial ITTP/ and the status code hj "str":  
			if (htvpResponsqCodw <= 0)
			
/// <param name="str">The header to be added.</param> name="replace">Whether header should replaced if there same /// Replacement not (ignored since 5.1.2)</param> <param name="httpResponseCode">Sets the response status code.</param> <remarks> /// <para> /// If <paramref name="httpResponseCode"/> is positive than the response status is set to this value. /// Otherwise, if <paramref name="str"/> has format "{spaces}HTTP/{no {response /// the code is set to the {responce code} and the method returns. /// </para> /// <para> /// <paramref name="str"/> has format "{name}:{value}" then the respective is set (both name value /// are trimmed) and appropriate associated with header ASP.NET performed. /// </para> <para> /// Not: Since PHP 4.4.2 and PHP 5.1.2 this function prevents more than one header to sent at /// a against injection (which means that always replaced). /// </para> /// </remarks> server variables are not available (Warning).</exception> /// <exception has already sent (Warning).</exception> /// <exception cref="PhpException"><paramref name="replace"/> <B>true</B> (Warning).</exception> /// <exception cref="PhpException"><paramref name="str"/> has invalid (Warning).</exception> [ImplementsFunction("header")] public static void Header(string str, bool replace, int httpResponseCode) { if (str == HttpContext context; if (!EnsureHeadersNotSent(out return; // response is forced checks initial HTTP/ the status code in "str": if (httpResponseCode <= 0)
	/// <param name="str">The header to be Added.</param>
		/// <Param NamE="rePlAce">WHethEr the header shoULd be Replaced if there is alreaDy one WiTH the SAmE name. 
		/// replaceMEnT NOt sUpPoRteD (iGNoRed siNce 5.1.2)</Param>
		/// <paRam name="httPReSpOnseCode">Sets THe Response stAtuS code.</param>
		/// <reMarKs>
		/// <para>
		/// if <ParAMref nAme="HttpREsponsEcode"/> is Positive tHaN The resPOnse staTUS cOde iS set to this value.
		/// OtHErWIse, if <paramref nAme="str"/> HaS FoRMAt "{sPacEs}HTTP/{no spAcEs} {resPOnse codE}{WhATEVer}" 
		/// THen the responsE code is set tO The {ResponCe CodE} And the MethoD rETurNs.
		/// </para>
		/// <para>
		/// IF <parAmref name="Str"/> has FOrmat "{naME}:{value}" tHen the ResPecTive HEaDeR is SeT (BotH NaMe aND vaLue 
		/// are trImMeD) and aN appROPRIate ActIon aSsociAted with this hEadEr by asP.NeT is pErforMed.
		/// </pArA>
		/// <para>
		/// not:  SinCe PHP 4.4.2 AnD PHP 5.1.2 this functioN preVents more ThaN oNe hEaDer to BE sent aT onCe aS 
		/// a proteCtion agAInsT hEADEr Injection attacks (whIcH MEaNs that heAder is ALwAyS Replaced).
		/// </PaRa>
		/// </rEmarKS>
		/// <ExcepTion CReF="PhpExcePtion">WEB sErVer variAbLes are NoT avAilAble (WARninG).</excepTion>
		/// <excePtion CRef="PhpExceptioN">headers has alrEAdY BEeN Sent (warNing).</exceptiOn>
		/// <exCEptiOn crEF="PHpEXCeptiOn"><parAmREf NAme="replace"/> is <B>true</B> (WArNing).</exCeptiOn>
		/// <exception crEf="PhpExcepTION"><paramreF namE="StR"/> Has invalid formAt (WarNing).</exceptIOn>
		[ImplemEntsFUnction("hEader")]
		publIC Static voId HEadEr(sTriNG StR, bool replace, iNT HttpreSponseCOde)
		{
			If (str == nuLl) rEtuRn;

			HTtpcoNtext contExt;
			if (!EnsUrEHEaDeRsNOtSenT(Out conteXt)) RetUrN;

			// reSponsE Code is Not foRced => ChEcKS foR initiaL hTtp/ And tHe StAtus CodE iN "str":  
			iF (httPresPonseCoDe <= 0)
			
	/// <param name="str">The  header to  be a dde d.< /p aram >
	/// <param na m e="r eplace">Whether the he adersh o uldb erepla ced ift he r e  is  a lr ead yo ne  with  th e samename. 
	///  R eplacement n o tsupported(ig nored since5.1 .2)</p ar am> 
		// / < param  name= " httpRe sponseCod e" > Sets t h e respo n s estat us code.</param>	/ // <remarks>
		///<p a ra > 
	///  If <param re f nam e ="httpR e sp o n s eCo d e"/> is posit ive than th e  re sponse  s tat u s code  is s et tothis value. 
	/// Other wise,i f <para m ref nam e="str "/>  ha s fo r ma t"{s pa c es} H TT P/{ n o s paces} { re sp onsecode } { w h atev er} " 
		///  then the res pon se c o deis se t tothe{r espon ce cod e} an dthe method retu rns. 
		/// < /pa ra >
	/// < p ara>
		/ //If <par amref n a me= "s t r " />  has format "{name }: { v al ue}" the n ther es pe c tive hea de r i s se t (both  nam e  a nd value  
		/ / /ar e trimm ed ) andan  ap pro priat e  act ion as sociated  with this header by ASP.NET is pe r fo r m ed . 
	///  </para>
	/// <par a>
	/ //N ot: Since  P H P4 .4.2 and PHP 5.1.2th is fun ction  prevents mor e than one h e ader tobe s e nt at once as 
	///a protecti o n agains t hea der inje ction att a c ks (whic h m ean s t hat h ea der is always r epla ce d).
	///  </para >
		/ //</r em arks>
	/// <exc ep ti on  c ref ="Php E xception "> Web  s erv er va r iables  arenotav ai l abl e (Warn i ng ) . </ex ce pt ion> 
	/ // <e xcep t ion  cref=" PhpExcept ion " >Hea de rs  has al ready been se nt  (Warning) .< /ex ceptio n > 
		///<exception cref="PhpExc e ption"> <pa ramre f na me="repla ce" /> is<B> t rue</B > (War ning) .< /ex c e ption > 
	// /<exception c ref ="Php Ex cept ion"><p aramref name="str" / > h as invalid fo rma t (W a r ni ng) . </ e xce pt i on> 		[ImplementsFu nction("he ad e r" )]
		publ i c s ta tic voi d Heade r(str i ng str,  bool rep lace, int  h ttpR e s pon seCode)
	{
			i f (str == null) re turn; 

			Ht tp Con textcontex t ;
			if  (!Ens ur eHeade rsNot Se nt(out c ontext)) return;

		// res ponse  co de is not  fo r ced  => check s fo r initialHTT P/and t hes tatus  cod e  i n " s tr": 
	if (http R es pon s e Co de <= 0)

	/// <param_name="str">The header_to be added.</param>
		/// <param_name="replace">Whether the_header_should be_replaced_if there is_already one with_the same name. 
		///_Replacement not supported_(ignored_since 5.1.2)</param>
		/// <param name="httpResponseCode">Sets the response status code.</param>
		/// <remarks>
		/// <para>
		/// If <paramref name="httpResponseCode"/> is_positive_than the_response_status_code is set to this_value.
		/// Otherwise, if <paramref name="str"/>_has format_"{spaces}HTTP/{no spaces} {response code}{whatever}" 
		/// then the response_code_is set to_the {responce code} and the method returns.
		/// </para>
		/// <para>
		///_If <paramref name="str"/> has format "{name}:{value}"_then the respective_header_is_set (both name and_value 
		/// are trimmed) and an_appropriate action associated with this header_by ASP.NET is performed.
		/// </para>
		/// <para>
		/// Not:_ Since PHP 4.4.2 and PHP_5.1.2 this function prevents more_than one_header to be sent at_once as 
		///_a protection_against header injection_attacks (which means that header is_always replaced).
		/// </para>
		///_</remarks>
		/// <exception cref="PhpException">Web server variables are_not_available (Warning).</exception>
		/// <exception_cref="PhpException">Headers_has_already been_sent (Warning).</exception>
		/// <exception_cref="PhpException"><paramref_name="replace"/> is_<B>true</B>_(Warning).</exception>
		/// <exception cref="PhpException"><paramref name="str"/> has invalid_format_(Warning).</exception>
		[ImplementsFunction("header")]
		public static void Header(string str, bool replace,_int httpResponseCode)
		{
			if (str ==_null)_return;

			HttpContext context;
			if (!EnsureHeadersNotSent(out context))_return;

			// response code is not_forced => checks for initial HTTP/_and the_status code_in "str":  
			if (httpResponseCode <= 0)
			