0

I need to convert my Dictionary<string,string> into a php array key like the following:

$result['iv'] = iv;
$result['json'] = pJSON;
$result['header'] = header;

I then need to post it to a target server which is using php.

How would I do this?

1

1 Answer 1

1

Why not convert it into a more universally recognised format?

I suggest JSON using C# (see C# list of JSON libraries near the bottom of the page) and then in PHP you can use:

$result = json_decode($_POST['result'], true);
Sign up to request clarification or add additional context in comments.

1 Comment

yep i know that is a way better way of doing things, however we have no control on php side so far

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.