Advertisement
shakasu

Untitled

Feb 20th, 2021
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. local client = require('http.client')
  2. local http = client.new()
  3. local json = require('json')
  4.  
  5.  
  6. local body = json.encode({ book_name = "Цветы для Элджернона", author = "Киз" })
  7.  
  8. http:post("http://213.219.215.66:8080/http", body,
  9. { headers = {["auth-token"] = "b5f13cbf-23d6-4dda-aefd-6bde4cc5c854",
  10. ["Content-Type"] = "application/json"}})
  11.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement