Advertisement
Guest User

Untitled

a guest
Mar 30th, 2016
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. curl --data-urlencode 'userName=tutu&password=xx' 'https://thesite/api/login?noCacheDummyValue=1459356436185' -X POST
  2. -H 'Host: thesite' -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0'
  3. -H 'Accept: application/json, text/plain, */*' -H 'Accept-Language: en-US,en;q=0.7,fr-FR;q=0.3'
  4. -H 'Accept-Encoding: gzip, deflate, br' -H 'X-Requested-With: XMLHttpRequest'
  5. -H 'Content-Type: application/json;charset=utf-8' -H 'Referer: https://thesite/mobile/app/app.html'
  6. -H 'Content-Length: 44' -H 'Cookie: JSESSIONID=qhs02mfeip2p1n5n4t2rj1huu'
  7.  
  8. sh myproj.sh
  9. curl: (52) Empty reply from server
  10.  
  11. curl 'https://thesite/api/data/1036493/heatEnergy/today?noCacheDummyValue=1459356438440'
  12. -H 'Host: thesite' -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0'
  13. -H 'Accept: application/json, text/plain, */*' -H 'Accept-Language: en-US,en;q=0.7,fr-FR;q=0.3'
  14. -H 'Accept-Encoding: gzip, deflate, br' -H 'X-Requested-With: XMLHttpRequest'
  15. -H 'Referer: https://thesite/mobile/dashboard/dash.html' -H 'Cookie: JSESSIONID=qhs02mfeip2p1n5n4t2rj1huu'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement