Interesting IOS 6 user agent - ios6

Could any one of you please tell me what causes the Safari version number and build number to be missing from the user agent string?
Mozilla/5.0 (iPhone; CPU iPhone OS 6_1_4 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Mobile/10B350
In most cases this is what we are seeing -
Mozilla/5.0 (iPhone; CPU iPhone OS 6_1_4 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10B350 Safari/8536.25
Thanks

Ok basically if you install the Google Search App and visit a site via the app then the user agent will be Mozilla/5.0 (iPhone; CPU iPhone OS 6_1_4 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Mobile/10B350
Hope this helps someone.

Related

UDP communication delay every second or so (Windows SDK & Mac)

I'm sending packets using UDP protocol from Windows to Mac computer (Windows 10, Mac OS X 10.10). I'm using Windows API on Windows (C++) and GCDAsyncUdpSocket on a Mac (Objective C and C). The frequency that I send is around 100Hz. I'm expecting latency of 10ms, and it really is 10ms on the sending computer. But the receiving part gets delayed every 1 second. So it receives around 100 packets and then there's a delay about 50ms.
I tried dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0) on the Mac side but it didn't help. I tried Wi-Fi, Ethernet, different computers and networks, it didn't help either! Firewalls, Windows Defender are off everywhere. There's always a delay every ~100 packets on the receiving (Mac) side.
I can post the code, but it's really basic.
What can be the problem here? It looks like I'm missing some setting that I'm not aware of!

How to "test if user has"/"get" the microphone and record from it Linux, Solaris, BSD

I am trying to test if the user has microphone attached. If they do, I then want to offer the user to pick from the microphones, and then record the audio using the native C APIs.
I was able to accomplish this on Windows (winapi) and Mac OS X (CoreFoundation), however on the other unix based platforms such as Linux, Solaris, and BSD I can't seem to figure it out. I found something called /dev/audio is this cross platform?

How to open a file specified in the URL? in C

I have a simple C web server. i can connect to that web server by browsing in my web browser: http://127.0.0.1:5001/
What i want to be able to do is retrieve a file (locally) using GET.
so i want to be able to connect with http://127.0.0.1:5001/local/file.txt
and have the server send me the file.
I am having trouble understanding where i grab the the URL from within the C program? Once the socket is connected it reads into a buffer. to see what is being stored in the buffer i made it print out and got the following
GET /local/file.txt HTTP/1.1
Host: 127.0.0.1:5001
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Connection: keep-alive
My question is, can i use the information that is allocated to the buffer as a way to recognise a GET command and open the file path that is located in that buffer? That is, search that buffer for the string GET /filepath/
I can't seem to find anything online to point me in the right direction.
I have read through Beej's Guide to Network Programming which was helpful, but didn't answer my question.
What is the best practice to open a file from a URL? Using a standard C library and UNIX functions and "translating" sockets by hand without the use of such things as libcurl etc.... i don't want to use libcurl, probably something along the lines of strstr etc... find keyword and open filepath...??
can i use something like this? so pass buffer into it...
if(strstr(buffer, "GET") != NULL)
{
// Get address
inf->addr = strdup(line+4);
except that this would output everything after GET to a structure pointer... is there a way to limit this? ie... stops after a space is recognised? so just before HTTP/1.1, i read that /0 is a terminating function... will strstr() stop after reaching a space?

C File Transfer between a Windows computer and a Mac/Linux computer?

If I have a Windows computer and a Mac computer or a Linux computer, is there a recommended library way to transfer a file between them that doesn't involve FTP, passwords, etc.
For example:
Computer #1: Windows 7 with a local ip of 192.168.1.5
Computer #2: Mac Lion with a local ip of 192.168.1.9
Is there a known peer-to-peer file transfer library out there for C and/or C++ or is this a common method for this using an established library or something I'm not aware of.
you can use the library libcurl.
There is no login and password prompts. just give the login and the password in the curl config with the function curl_easy_setopt and all the work will done by the libcurl

can i install the Nokia 5230 OS for Nokia 5228 Phone?

Am using Nokia 5228 phone. I want to install the other Phone OS like Nokia 5230. Is this possible or Not?
As far as I know this is impossible to achieve. Since the Sw is different for different phones.
Even though two phones appears to look same in functionality, obviously they will have some different functionality some where.. [Either in GUI or in the back end].
As well as, the device S/w are designed as to recognize the particular mobile phones for which they are made for [by serial number/ model number or may be anything else only.]
Also you'll have to get the S/w first which is very difficult to get.
You ca not change anything in the device so that the device gets other phone's S/w.
So conclusion is:
You CAN NOT install the Nokia 5230 OS for Nokia 5228 Phone.

Resources