HF RL Explorer

Task: Fix PHP cURL POST Request to Support Arrays

Task: Fix PHP cURL POST Request to Support Arrays: a task in Terminal-Lego-15k (Harbor dataset). You have a PHP script that sends data via cURL POST request, but the images array only sends the first value instead of all values. The issue is that when using associative arrays in PHP, duplicate…

The task

You have a PHP script that sends data via cURL POST request, but the `images` array only sends the first value instead of all values. The issue is that when using associative arrays in PHP, duplicate keys (like `'images[]'`) overwrite each other, resulting in only the last value being retained.

Part of PrimeIntellect/Terminal-Lego-15k.