Extract MSISDN headers on Rails - ruby-on-rails

I'm curious about is there any way to detect phone number when accessing my website via 3G.
I did some research on the Internet and found these headers that can help me extract the phone number. But I can not get anything.
X-MSISDN
X_MSISDN
HTTP_X_MSISDN
X-UP-CALLING-LINE-ID
X_UP_CALLING_LINE_ID
HTTP_X_UP_CALLING_LINE_ID
X_WAP_NETWORK_CLIENT_MSISDN
May I extract phone number from the one who accessing my website via 3G?

Some operators are sending x headers on server requests ,based on my recent researches ,I found out that many operators are hiding or encrypting or renaming the x headers and it's hard to retrieve the user's MSISDN , I've tried many ways and If you wanna test your operator, you can use this website Test Operator's MSISDN availablity(remember to open the link with your mobile device)
I hope it will help you.

Related

UTM Not Working

We are currently using a number of UTM codes with various companies to track a campaigns to our website. While most of them have worked without issue, three have failed to be recorded by Google Analytics and they all use the same format (two of the URLs are below). Any idea why this would be? The links themselves work, it's just GA hasn't accepted them at all.
https://urldefense.proofpoint.com/v2/url?u=http-3A__www.semble.co.nz_mobilepay_bnz_-3Futm-5Fsource-3Dbnz-5Fapp-26utm-5Fmedium-3Donline-5Fbanner-26utm-5Fcontent-3Durl-5Fappnotification-26utm-5Fcampaign-3Dmobilepay-5Fcampaign&d=CwMFAg&c=N-xPqDyeLJg5V3gLll2thA&r=lbXMFujwGwA66Ivf0fYOaY8Dv5vHXIMr8z9PppNbh6c&m=JP3JnHYmkJ3J1YBwv9iHgnMsJJZdyrflVUuPxw_okaA&s=xT3UnMPmiP-DJPNwtQhywHsRWvmMg7PMylFMQjrGov4&e=
https://urldefense.proofpoint.com/v2/url?u=http-3A__www.semble.co.nz_mobilepay_bnz_-3Futm-5Fsource-3Dbnz-5Fapp-26utm-5Fmedium-3Dgoogle-26utm-5Fcontent-3Durl-5Fappnotification-26utm-5Fcampaign-3Dmobilepay-5Fcampaign&d=CwMFAg&c=N-xPqDyeLJg5V3gLll2thA&r=lbXMFujwGwA66Ivf0fYOaY8Dv5vHXIMr8z9PppNbh6c&m=JP3JnHYmkJ3J1YBwv9iHgnMsJJZdyrflVUuPxw_okaA&s=wN-S93ZKKnjHZoGSPZJCTTvDk9NeqUd7zG9W5MoGwKA&e=
Thanks in advance!
You URL is not correctly builded, you must found any of this strings on your URL :
&utm-campaign=
&utm-source=
&utm-medium=
And didn't appear, seems like your system are recoding URL in some point.

Generate X-Apple-ActionSignature

for some research at work I have to understand how to generate the X-Apple-ActionSignature which can be found in HTTP-Headers e.g. of iTunes-traffic. I've read that it can be found in other Mac OS X and iOS specific network traffic, too.
What I've found so far is that iTunes sends a GET request to
https://init.itunes.apple.com/WebObjects/MZInit.woa/wa/signSapSetupCert
In the response a plist is appended which has a key 'sign-sap-setup-cert' containing probably a certificate. After that a POST request contains 'sign-sap-setup-buffer' and is sent to
https://play.itunes.apple.com/WebObjects/MZPlay.woa/wa/signSapSetup
The response has again 'sign-sap-setup-buffer' in the data segment and after that every other request contains a X-Apple-ActionSignature. However I can not find out how to generate this. Is someone able to help me?
Looking at this Twitter thread, it seems that "X-Apple-ActionSignature" is some kind of proprietary signature or metrics posts generated and/or used by FairPlay.
It's not something that Apple has documented publicly, nor do they make it easy to figure out how to generate or spoof (even if for non-malicious purposes like research).
Your best bet is to contact Apple directly (e.g. via a Technical Support Incident or TSI) and tell them exactly what you are doing and the big picture of why you are doing this, and if you are lucky the Developer Technical Support person will connect up with the right people in Apple Engineering to give you the answers you need.

how to bundle google API calls for Place Search Requests?

Hi I am using the "Place Search Requests" from google:
A Place Search request is an HTTP URL of the following form:
https://maps.googleapis.com/maps/api/place/search/output?parameters
But the problem is I have to make hundreds of queries to google and this makes the APP very very slow.
Could I somehow bundle the requests at once? For example, I can send all the names of the places to google and get the result back in a row?
Regards, Yashu
You can only do what the documentation says will work.
Side note: Bulk downloads of data are forbidden by the Terms. It's open to question why you need to make hundreds of queries, and indeed whether your use case is allowed.

Twitter API: how to know what application was used to follow

In the email notification we can see something like
<username> followed you using <appname>.
It is great. But is there any possible way to know the application name using API?
I took a look through the REST API, and I could not find anything that would support this. My guess is that this is a twitter.com feature that is available in the API (yet).
The most logical places I looked were statuses/followers and friendships/show. In both cases there was nothing definitive. Checking the follower emails for my account, I found multiple followers that used applications (like PeopleBrowr and SocialOomph) to follow the account. In most cases, the source on their latest status object matched the application name used to follow me, but that was definitely not a sure thing.
So, to answer your question directly, no I don't think it can be done through the API (not unless there's an undocumented method out there that does this.)
I can, however, think of a way to get that info. One approach would be to set up the email account receiving the follow notifications to forward a copy to a mailbox that is checked by an automated process. When emails show up, parse them to find the app name used to follow you.
I used the following regular expression (in C#) to find the application's name and URI in the email's body:
Match m = Regex.Match(input, #"followed you using\s*<a[^""]+""(?<appUri>[^""]+)""[^>]+>(?<appName>\w*)</a>");
I used m.Groups["appName"].Value to pull out the application name, and m.Groups["appUri"].Value to pull out the URI from the match.
In order to tie the app info to a user, I had to also find the screen name with:
Match m = Regex.Match(user, #"\(#<a[^>]+>(?<screenName>\w*)</a>\) is now following");
I used m.Groups["screenName"].Value to extract the value from the match.

Filter tweets by client name

I'm trying to filter tweets results by client name like - using source operator.
I'm trying to do it with a a client named "single platform" , to get tweets like http://twitter.com/#!/phoenixparknyc/status/43340419475570688 but the search doesn't seems to work (tried with quotes as well)
http://twitter.com/#!/search/source%3Asingle%20platform%20Specials%2FEvents%20
Any idea how to make the search works ?
The correct way to handle multi word sources is to remove the spaces. For example Twitter for Android becomes source:twitterforandroid. Unfortunately searching by source is pretty unreliable and generally doesn't work with low volume clients. My guess is it will eventually work for your client but who knows when.
http://twitter.com/#!/search/special%20source%3Asingleplatform

Resources