Form post asp classic xmlhttp -


I am trying to post a form from another site which is not mine, but I can not give it an error I am

This post is mounted on the site like this:

  & lt; A href = "javascript: document.result.submit ()" class = "lnk-more" & gt; Veja o advance to lead a »» » / A & gt; & Lt; Br / & gt; & Lt; Br / & gt; & Lt; Form name = "results" verb = "http://enquete.terra.com.br/enquete.cgi" method = "post" & gt; & Lt; Input type = "hidden" name = "id_enquete" value = "144143" & gt; & Lt; Input type = "hidden" name = "oppo" value = "0" & ​​gt; & Lt; / Form & gt;   

And I'm riding this ASP script to create this post:

  & lt;% dim objHttp dim str str = "Id_enquete = 144143 & Opcao = 0" objHttp = Server.CreateObject set ("Msxml2.ServerXMLHTTP") objHttp.Open "POST", "http://enquete.terra.com.br/enquete.cgi", Wrong objHttp.setRequestHeader "Host", "Http://enquete.terra.com.br" objHttp.setRequestHeader "Content Type", "Application / X-www-Form-URLXode; Charset = ISO-885 9-1" objHttp .setRequestHeader Set "content-length", lane (SRR) objHttp.Send Resp Response.Write (objHttpResponseText) objHttp = nothing%>   

But that does not work, does anyone know how wrong I am or not?

Thanks

You can not request cross domain requests using AJAX. If other site supports, you can use a script request to access the site and receive data about it, of course, your parameters should be in the URL for that action.

  & lt; Script type = "text / javascript" & gt; Work result callback (data) {// back something with JSON data} & lt; / Script & gt; & Lt; Script type = "text / javascript" src = "http://enquete.terra.com.br/enquete.cgi?id_enquete=144143&opacao=0&callback=result callback" & gt; & Lt; / Script & gt;    

Comments