Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> AMIP HTTP Submissions Without Using Curl
Anonymoose
post Aug 16 2006, 07:38 PM
Post #1


Newbie
*

Group: Members
Posts: 1
Joined: 16-August 06
Member No.: 128



Just thought I'd share this for anyone who's interested in alternatives to using Curl for sending their submissions via HTTP - a lot of our forum users had problems understanding how to get everything up and running, where to put Curl.exe etc so I've been looking into other possibilities.

This method uses vbscript and Microsoft XMLHTTP to send a submission to our server. It's very basic at the moment, but it works. I need to work on error handling/avoidance.

The following goes into a the file vbstemplate.txt in the Winamp Plugins directory :

set http = createobject("microsoft.xmlhttp")

url = "http://myforum.com/playing.asp?"
url = url + "Artist1="+"%1"+"&Title1="+"%2"+"&Length1="+"%LEN"+"&~username=myusername&~password=mypassword"
http.open "get",url,false
http.send

Obviously, myforum.com, myusername and mypassword are replaced with the real thing. The layout of the URL is specific to our forum, but from my example above you should be able to work out your own template smile.gif

In the Callbacks/Web Integration section goes :

/template:(C:\Program Files\Winamp\plugins\vbstemplate.txt) C:\Program Files\Winamp\plugins\vbssubmit.vbs
/exec:(C:\Program Files\Winamp\plugins\vbssubmit.vbs)

Hope this might be useful for anyone else who doesn't or can't go down the Curl route. All I can say for sure at the moment is it works nicely on XP Pro SP2 and more testing is needed laugh.gif

Edit:Oops. blink.gif Didn't intend to put this in Support. Sorry rolleyes.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members: