Authentication problem

Subscribe to Authentication problem 4 posts, 3 voices

 
Avatar Brian McHarg 3 posts

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?

 
Avatar StudentPlace 1 post

I’m also having this problem….literally….also using a classic ASP environment.

Any help would be greatly appreciated.

 
Avatar Bruno Celeste 374 posts

You need to authenticate via basic auth. I really don’t know how to do it in ASP but it’s surely doable.

 
Avatar Bruno Celeste 374 posts

So, the solution is:

xml.Open "POST", "http://heywatch.com/discover.xml", False, "LOGIN", "PASSWORD"