Authentication problem
|
|
I’m trying to get this service working with a site I’ve developed in vbscript/classic asp and am experiencing some problems. The code which I am trying to post a video using is as follows: <% Response.Buffer = True Dim objXMLHTTP, xml Set xml = Server.CreateObject(“Microsoft.XMLHTTP”) xml.Open “POST”, “http://heywatch.com/discover”, False xml.Send “key=XXXXXXX&url=http://www.mydomain.com/video/raw/video.avi&download=true&title=Test&automatic_encode=true” Response.Write xml.responseText Set xml = Nothing %> All I am getting as a response from the server is a copy of the login page at http://heywatch.com/auth. Why is this, when I’ve entered the correct key into my POST? Is there something else I need to pass into the script? I did read that I need to first be authenticated by Basic Auth, but I can’t find a way to do this from within vbscript. Any pointers? |
|
|
I’m also having this problem….literally….also using a classic ASP environment. Any help would be greatly appreciated. |
|
|
You need to authenticate via basic auth. I really don’t know how to do it in ASP but it’s surely doable. |
|
|
So, the solution is: xml.Open "POST", "http://heywatch.com/discover.xml", False, "LOGIN", "PASSWORD" |