Guest User

Untitled

a guest
Oct 1st, 2013
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. on *:SOCKOPEN:tlnet:{
  2. ; Set the variables we want to send - in this example the player is terror and the race is zerg
  3. var %string title=terror&race=zerg
  4. ; Send POST and Host
  5. sockwrite -n $sockname POST /api/streams/update/xxxxxx.json HTTP/1.1
  6. sockwrite -n $sockname Host: www.teamliquid.net
  7. ; Send the extra content headers
  8. sockwrite -n $sockname Authorization: Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  9. sockwrite -n $sockname Content-Length: $len(%string)
  10. sockwrite -n $sockname Content-Type: application/x-www-form-urlencoded
  11. ; We are done, remember we have to send the %string last
  12. sockwrite $sockname $crlf
  13. sockwrite $sockname %string
  14. }
Advertisement
Add Comment
Please, Sign In to add comment