Chilkat Online Tools

unicodeCpp / Shopify / Hack Authentication

Back to Collection Items

#include <CkHttpW.h>
#include <CkHttpResponseW.h>

void ChilkatSample(void)
    {
    // This example assumes the Chilkat API to have been previously unlocked.
    // See Global Unlock Sample for sample code.

    CkHttpW http;
    bool success;

    http.SetRequestHeader(L"Content",L"<>");

    CkHttpResponseW *resp = http.QuickRequest(L"POST",L"httpsDefaultParameterValue:DefaultParameterValue@DefaultParameterValue.myshopify.com/account/login");
    if (http.get_LastMethodSuccess() == false) {
        wprintf(L"%s\n",http.lastErrorText());
        return;
    }

    wprintf(L"%d\n",resp->get_StatusCode());
    wprintf(L"%s\n",resp->bodyStr());
    delete resp;
    }

Curl Command

curl -X POST
	-H "Content: <>"
httpsDefaultParameterValue:DefaultParameterValue@DefaultParameterValue.myshopify.com/account/login

Postman Collection Item JSON

{
  "name": "Hack Authentication",
  "request": {
    "method": "POST",
    "header": [
      {
        "key": "Content",
        "value": "<>"
      }
    ],
    "url": {
      "raw": "{{baseUrl}}/account/login",
      "host": [
        "{{baseUrl}}"
      ],
      "path": [
        "account",
        "login"
      ]
    },
    "description": "Hack authentication."
  },
  "response": [
  ]
}