Packet (Windows)

AddThis Social Bookmark Button

Packet is a JSON web packet sending tool perfect for System Administrators, Web developers, system integrators and IOT afficianados.

Packet is very similiar to Send Yo except that it provides the flexibility to send JSON packets to any WEB API including Yo and the IFTTT Maker service. The application can be run silently from the command line or as an interactive application and requires no installation on any machine with .Net 3.5 installed.

 

 

 

How Packet Works

Packet allows you to send a JSON packet to any web API by specifying a URL and also the JSON content. You can do this from the command line (see parameters below) or interactively.

The user interface is simple with fields for the URL and JSON.

After you send your packet the application will display "Success" if the packet could be sent successfully or an error if the request failed due to either formatting, an invalid URL or any submission issues.

Packet can be used to send a request to any URL (even without JSON data) that can accept POST data. The URL must be correctly formatted to include the type (i.e. Http:// or Https://).

Command Line Parameters

Packet.exe /URL={URL} /json={JSON code} /jsonfile={Path to JSON File} /Start={True|False} /Stop={True|False} >> {Log File}

  • /? - Display command line parameters
  • /URL= - URL used for web request
  • /Json= - JSON packet content
  • /Jsonfile= - path to file containing JSON content
  • /Start=True - Start test immediately
  • /Stop=True - Stop application after test complete
  • >> - Output results to file

Examples

The IFTTT Maker service allows web requests to be sent to trigger activity in other services.

If we want to post JSON containing {"value1":"myvalue"} to the maker service we would first connect to the service and generate a Key. Then we can create an applet that will detect a web request to the Maker service that contains a certain Event ID and some data values and trigger actions such as post to Skype, Office365, Twitter, Facebook or even change the color of your Philips Hue.

  • Send JSON command line web request to the IFTTT Maker service:
    • Packet.exe /URL=https://maker.ifttt.com/trigger/{EventID}/with/key/{Key} /json={\"value1\":\"{Data1}\"} /Start=True /Stop=True
  • Send a JSON file web request to the IFTTT Maker service:
    • Packet.exe /URL=https://maker.ifttt.com/trigger/{EventID}/with/key/{Key} /jsonfile=send.JSON /Start=True /Stop=True

See the Documentation of your preferred API for JSON and URL format details.

Version History

Packet does not include an installer but is currently a standalone application that requires .NET 3.5 to be installed.

30/11/2016 - V1.0.0.1 Release

Attachments:
Download this file (Packet.exe)Packet.exe185 kB2016-11-30