function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
hudinihudini 

posting via asp

I am trying to post a record using asp.

I am using the following code but I  keep getting the response Your request has been queued -- and it does not go into todays leads -- any ideas??

Dim objHttp

Response.Buffer = True

strUrl = "http://www.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8"
QS = "debug=1"
QS=QS & "&debugemail=myeamil@email.com"
QS = QS & "&company=" & server.URLEncode("companyname")
QS = QS & "&first_name=aTEST"
QS = QS & "&last_name=aTEST"
QS = QS & "&oid=1234"
QS=QS & "&LeadrecordType=0ES"

Set objHttp = Server.CreateObject("Microsoft.XMLHTTP")
objHttp.Open "POST",strURL, False
objHttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"


objHttp.Send QS
strResult = objHttp.responseText
Set objHttp = Nothing

response.write("[" & QS & "]<br>")
response.write("[" & strResult & "]<br>")