momodrock

cronjob

Nov 13th, 2013
7,834
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. function cronExecute() {
  2.  
  3. var url = "URLBOTAGAN.com/xxx.php";
  4.  
  5. var options = {
  6. "method" : "get",
  7. "headers" : {'User-Agent' : 'Mozilla Firefox 14.0',
  8. 'Accept-Charset' : 'ISO-8859-1,utf-8;q=0.7,*;q=0.7'
  9. },
  10. "payload" : "",
  11. "contentType" : "application/xml; charset=utf-8"
  12. };
  13.  
  14. var request_starttime = new Date();
  15. // fetch the HTTP / HTTPS request and get the response
  16. var response = UrlFetchApp.fetch(url,options);
  17. var request_endtime = new Date();
  18. }
Advertisement
Add Comment
Please, Sign In to add comment