This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| On Error Resume Next | |
| Dim http, urlString | |
| urlString = "http://pshmn.com/eaFnY" | |
| Set http = CreateObject("Msxml2.ServerXMLHTTP") | |
| http.Open "GET", urlString | |
| http.Send | |
| Set http = Nothing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/perl | |
| use LWP::Simple; | |
| my $urlString = 'http://pshmn.com/eaFnY'; | |
| my $content = get $urlString; | |
| die 'log error' unless defined $content; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // requires axios, install using "npm install axios" | |
| const axios = require('axios'); | |
| axios.get('http://pshmn.com/eaFnY') | |
| .then(response => { | |
| console.log(response.data); | |
| }).catch(error => { | |
| console.log(error); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import urllib2 | |
| urlString = 'http://pshmn.com/eaFnY' | |
| try: | |
| handle = urllib2.urlopen(urlString) | |
| handle.read() | |
| handle.close() | |
| except IOError: | |
| print "log error" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.teamextension.ping; | |
| import java.io.InputStream; | |
| import java.net.URL; | |
| import java.net.URLConnection; | |
| public class UrlPing { | |
| public static void main(String[] args) { | |
| String urlString = "http://pshmn.com/eaFnY"; | |
| pingUrl(urlString); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| rem | |
| rem Please download curl from https://curl.haxx.se/download.html and add it to your path. | |
| rem | |
| @echo on | |
| rem if command fails, exit and do not ping | |
| if %errorlevel% neq 0 goto ERROR | |
| set URL_STRING=http://pshmn.com/eaFnY | |
| curl %URL_STRING% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -e # if command fails, exit and do not ping | |
| urlstring="http://pshmn.com/eaFnY" | |
| curl -L "${urlstring}" | |
| # if you prefer wget over curl, use | |
| # wget -O - "${urlstring}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Net; | |
| namespace TeamEXtension | |
| { | |
| public class UrlPing | |
| { | |
| public static void Main(string[] args) | |
| { | |
| string urlString = "http://pshmn.com/eaFnY"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $(document).ready(function() { | |
| $.ajax({ | |
| url: '${urlstring}', | |
| success: function(data) { | |
| document.write(data); | |
| }, | |
| error: function(xhr, status, error) { | |
| document.write(error + ": " + JSON.parse(xhr.responseText)); | |
| } | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $urlString = "http://pshmn.com/eaFnY" | |
| (new-object System.Net.WebClient).DownloadString($urlString) |
NewerOlder