Menu

[r21]: / wiki / UserAgents.wiki  Maximize  Restore  History

Download this file

14 lines (9 with data), 1.0 kB

#summary Describes how user-agents should be used when making calls to the whatsapp servers.

=Useragent?=
I just found out that many of the (HTTP) request that need to be made to the Whatsapp servers verify your useragent. When making a HTTP Request in C# no default Useragent string is appended, this means Whatsapp won't execute our request correctly. I sniffed some HTTP requests that are made by the Whatsapp Application (iPhone) and found out a useragent string like the following should be appended:

  *_WhatsApp/2.6.10 S40Version/04.60 Device/nokiac3-00_
  *_WhatsApp/2.6.7 iPhone_OS/5.0.1 Device/Unknown_(iPhone4,1)_
  *_WhatsApp/2.7.3581 Android/4.0.2 Device/samsung-Galaxy_Nexus_

So far I haven't been able to find other useragent strings. I was planning on using this as default in the DirtyHttp class:

  *_WhatsApp/2.6.7 iPhone_OS/6.0.1 Device/Unknown_(iPhone4,1)_

I'm still looking for a method that will help use find the latest Whatsapp version, so that we can create an dynamic useragent string.
MongoDB Logo MongoDB