02-02-2013 08:06 PM
Even access element for some domain has been added to the config.xml,
system would throw an alert and won't load resource if url under the same domain contains "@" character.
This error happened on dev alpha simulator when doing o-auth with instagram.
Instagram login page contains resource using "@" character.
02-03-2013 12:19 AM - edited 02-03-2013 12:20 AM
Try escaping the @
var hasat =
[Pinched from Wiki]...
May be encoded but it is not necessary
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
a b c d e f g h i j k l m n o p q r s t u v w x y z
0 1 2 3 4 5 6 7 8 9 - _ . ~
Have to be encoded sometimes
! * ' ( ) ; : @ & = + $ , / ? % # [ ]
02-03-2013 04:05 AM
Thanks for reply.
I can't encode it.
It happened in the o-auth 2.0 processing.
The url including "@“ is used by Instagram login page. Not under my control.
02-03-2013 04:14 AM
Can you gimme an example URL (fake data) - not familiar with Instagram so I can see the URL makeup
02-03-2013 05:39 AM
02-03-2013 06:08 AM
The process is:
1. My app start an authorize request and visit instagram login page.
2. Instagram login page shows. Users input username and password.
3. Instagram return to my app with an access token.
Step 2 is out of my control.
02-03-2013 06:09 AM
Just replace any @ with %40
e.g. Your first one works fine ...
02-03-2013 06:24 AM
Yeah - after you do the auth req you get the token back and use than in requests I guess
I take it this is the bit with the @ in it
So just change the @ in that string to %40 in any URLs you request
02-03-2013 06:31 AM
No, after auth I only get a token string. I don't request any resources contain @.
Rsources contains @ are used in login page only.
I think it's impossible to solve it under WebWorks url rules.
Any way, thanks to your support.
For developers, blackberry is the best and most friendly.
02-03-2013 06:42 AM
The obvious thing to try is Ajax as that may well bypass whatever's getting in the way
A lot of their API looks very much like JSON
Sorry - can't gt into it further today, bit busy getting ready - Jam 13 flight very early in the morning