R
raj.sinha
I have to "PUT" data to a Unicode file... a file that has the "FF FE"
mark at the beginning of the file.
How do i do that. What HTTP header do i need to send so that the data
is stored in the Unicode file. Right now when i "PUT" the data it sores
it in a regular file.
Test code below
Set xml = Server.CreateObject("MSXML2.ServerXMLHTTP")
' Opens the connection to the remote server.
xml.Open "PUT", "http://135.8.63.61/outlook/save.txt", False
' Try these headers
'xml.setRequestHeader "Charset", "UTF-16"
'xml.setRequestHeader "Charset", "text/html; charset=UTF-16"
' Actually Sends the request and returns the data:
xml.Send "hello"
If xml.Status >= 400 And xml.Status <= 599 Then
Response.Write "Error Occurred : " & xml.Status & " - " &
xml.statusText
Else
Response.Write xml.ResponseText
End If
Set xml = nothing
mark at the beginning of the file.
How do i do that. What HTTP header do i need to send so that the data
is stored in the Unicode file. Right now when i "PUT" the data it sores
it in a regular file.
Test code below
Set xml = Server.CreateObject("MSXML2.ServerXMLHTTP")
' Opens the connection to the remote server.
xml.Open "PUT", "http://135.8.63.61/outlook/save.txt", False
' Try these headers
'xml.setRequestHeader "Charset", "UTF-16"
'xml.setRequestHeader "Charset", "text/html; charset=UTF-16"
' Actually Sends the request and returns the data:
xml.Send "hello"
If xml.Status >= 400 And xml.Status <= 599 Then
Response.Write "Error Occurred : " & xml.Status & " - " &
xml.statusText
Else
Response.Write xml.ResponseText
End If
Set xml = nothing