Answer:Recommendations for a Hex Viewer Control for Windows.Forms?

There is a ByteViewer Control directly available in the .NET Framework. Here is how you can use it in a sample Winforms C# application (note: you need to reference the System.Design assembly):

Namespace: System.ComponentModel.Design
Assembly: System.Design (in System.Design.dll)

public Form1()
{
InitializeComponent();

ByteViewer bv = new ByteViewer();
bv.SetFile(@”c:\windows\notepad.exe”); // or SetBytes
Controls.Add(bv);
}


http://stackoverflow.com/a/23344431

Answer:How to post data in PHP using file_get_contents?

$postdata = http_build_query(
array(
‘var1’ => ‘some content’,
‘var2’ => ‘doh’
)
);
$opts = array(‘http’ =>
array(
‘method’ => ‘POST’,
‘header’ => ‘Content-type: application/x-www-form-urlencoded’,
‘content’ => $postdata
)
);
$context = stream_context_create($opts);
$result = file_get_contents(‘http://example.com/submit.php’, false, $context);


http://stackoverflow.com/a/2445332