php

  1. B

    Trying to code a PHP equivalent of this C# code. Hashing and Signing of a text value

    I have this code block in C# that I am trying to convert to PHP and Java. But already got stuck on PHP // code sample given to me as to how the Token is created var text = "Text to Hash and then Sign"; var store = new X509Store(StoreName.My); store.Open(OpenFlags.ReadOnly); var certificate =...
  2. K

    Question File transfer via port 80

    Hello I want to implement file transfer in a bunch of C # and PHP. Client-side function: public void Upload() { string uriString = "http://127.0.0.1/upload.php"; WebClient myWebClient = new WebClient(); myWebClient.Headers.Add("Content-Type"...
  3. sbondo1234

    Question How to upload file and POST vars to php

    I have a C# script that uploads an image to my webserver with PHP here: C#: WebClient Client = new WebClient(); Client.Headers.Add("Content-Type", "binary/octet-stream"); byte[] result = Client.UploadFile("https://example.com/test.php", "POST", @"C:\mario.jpg"); string s =...
Back
Top Bottom