Ciao a tutti,
dovrei portare una funzione ASP in PHP.
La funzione dovrebbe generare un POST non visibile agli utenti.
Riporto sotto la funzione in ASP.
Qualcuno potrebbe darmi qualche spunto.
Grazie

Luchino


------------------------
<% Dim variabile1, variabile1
variabile1 = "variabile1" variabile2 = "variabile2"

function CreateClient(ClientLoginId, ClientPassword) Dim sURL
Dim xmlHttp

sURL = "https://dominio.net/pagina.asp"
set xmlHttp = CreateObject( "MSXML2.ServerXMLHTTP" )
xmlHttp.Open "POST", sURL, false
xmlHttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
xmlHttp.Send "Action=Create&variabile1=" & variabile1 & "variabile2=" & variabile2 & "&variabile3=" & variabile3 & "&variabile4=" & variabile4
CreateClient = xmlHttp.responseText
set xmlHttp = Nothing
if Err.number <> 0 then
getURLContent = Err.Description
end if
end function

if Request("CreateFunction") = "Create using Function" Then Dim sLoginId, sPassword
sLoginId = Request.Form("TestClientLoginId") sPassword = Request.Form("TestClientPassword")

Response.Write(CreateClient(sLoginId, sPassword))
end if %>
------------------------