Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $headers = array();
- $headers[] = "Content-Length: 96";
- curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
- $arr = "string-with-a-length-of-108";
- $headers = array();
- $headers[] = "Content-Length: ".(strlen($arr)-12);
- curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
Add Comment
Please, Sign In to add comment