And now i would like to get the http response statuscode. On win32, this : “responseHeaders->getAllKeys()[0];” contains for example “HTTP/1.1 404 Not Found” , so i can extract the statuscode. However, on the mac: no such luck. Keys[0] does not contain this line.
How do i get the statuscode in a normal -working on win32 and mac- way ?
Sorry, I’ve never tried to get that info out of the headers - have you tried printing all the headers that get returned, and seeing what comes back on OSX?
I’ve used the URL class a lot, but only for under-the-hood XML/JSON comms between an app and a server. And in that case, it doesn’t generally matter why the server failed to respond correctly.
But, yes, it’s something I should probably sort out. Haven’t time to task-switch to look at it at the moment though.