Hi Experts!
The answer is Found!!!
Yes,
1) Using "xmlhttp.setReq uestHeader", we can coin the headers
2) Using Request.ServerV ariables("HTTP_ <header-name>")), we can list the value
thanx and regards
Laks.R
=============== =============== =======
<%
'Header3.asp
url = "http://prism04/asp/header4.asp"
set xmlhttp = CreateObject("M SXML2.ServerXML HTTP")
xmlhttp.open "POST", url, false
xmlhttp.setRequ estHeader "Content-Type",
"applicatio n/x-www-form-urlencoded"
xmlhttp.setRequ estHeader "MyName", "Lakshmi Narayanan.R"
xmlhttp.setRequ estHeader "MyName1", "Lakshmi Narayanan.R"
xmlhttp.send "x=1&y=2"
Response.Write "<br>Status " & xmlhttp.status
Response.write "<br>Conten t " & xmlhttp.respons eText
set xmlhttp = nothing
%>
=============== =============== =======
<%
'Header4.asp
dim fs,fname
set fs=Server.Creat eObject("Script ing.FileSystemO bject")
set fname=fs.Create TextFile("C:\In etpub\wwwroot\a sp\db\test.txt" ,true)
fname.WriteLine (Request.Server Variables("ALL_ RAW"))
'fname.WriteLin e(Request.Form( "x"))
'fname.WriteLin e(Request.Form( "y"))
fname.Close
set fname=nothing
set fs=nothing
Response.Write( "Success")
%>
=============== =============== ======
"Lakshmi Narayanan.R" wrote:
[Qtn : How to get/set and send the HTTP Headers(user-defined) coming from
another domain/site]
Hi Experts,
In one SMS gateway project i need a great and urgent help from u all. There,
the Service Providers sending the data thru "HTTP Headers" (For ex.
sms-Id,sms-source [user defined]).
So i need to get and parse the name value pairs, and need to respond/send
the same way as coining the "HTTP Headers" (For ex.
sms-Id,sms-destination,sms-msg [user defined]).
Pls its urgent.
thanx in advance
Laks.R