I\'m in a corner in converting this JavaScript to PHP (using curl):
function downloadMemories(url) { var parts = url.split("?"); var xhttp = new XMLHttp