Http Heshareapp

  • Keep the app open (closing it terminates the HTTP server).
  • While convenient, using a raw HTTP server does come with risks if not configured properly.

    This is a hypothetical example of what a request looks like when the app fetches data for a specific shared item. http heshareapp

    Request URL: http://api.heshareapp.com/api/item/detail Keep the app open (closing it terminates the HTTP server)

    Request Headers:

    POST /api/item/detail HTTP/1.1
    Host: api.heshareapp.com
    Content-Type: application/json
    Content-Length: 142
    

    Request Body (Raw JSON):

    
        "method": "getItemInfo",
        "params": 
            "item_id": "1234567890",
            "user_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
            "device_id": "a1b2c3d4e5f6",
            "version": "2.5.1"
        ,
        "lang": "en"
    

    When you run HeshareApp on your PC or phone, the application often creates a local HTTP server. You will see a message like: "Open your browser and visit http://192.168.1.100:8080". This is the http heshareapp connection in action. While convenient, using a raw HTTP server does