Not sure if this made the difference, but I was getting an error from the mySQL server (I didn't re-authorize the db user after modifying the stored procedure) in my remote code.
Apparently this (rightly) delivers a malformed header to Safari. It's just couched in language that isn't as clear as it perhaps could be.
I fixed the problem and everything worked as I expected.
If you look real close at the error message you can see that Connection is written with a capital C. So safari means you cant set the header "Connection". This is probably an safety feature or something, i don't know actualy.
So what you can do is look at the code that makes the request an look if it sets the Connection header. If it does you must remove that piece of code.
I discovered this by accident and when i did i remembered that this topic didn't had a solution yet so i decided to post this. I don't know for 100% that it works but for me it does.