08-19-2013 02:42 AM
I made an application on OS 4.5, while creating connection to server i have to add APN details.
I add APN details in that as
where, apn = "apn=intternet".
Now i am unable to hit server. Please let me know what should i do.
I was following method provided by forum, Since no username and password needed in mine case.
Solved! Go to Solution.
08-19-2013 07:04 AM - edited 08-19-2013 07:06 AM
There were two questions in my previous post. Can you answer the first one too?
Also check your APN settings, "apn=intternet" looks wrong to me.
08-19-2013 07:33 AM
Sorry, That was "apn=internet".
that is giving me response code 403 (forbidden)
I am trying to connect to server withAPN details (provided by vodacom).
They want me to put APN credentails (no username password needed)in each connection, without APN i am getting proper response, but with APN i am getting 403.
I am using "deviceside=true" for each connection and add "apn=internet" at last, Is this right?
08-19-2013 08:25 AM
According to the vodacom informaiton that I have seen you need to specify the user - as guest.
Can you tell which 'server' is returning the 403? Usually there is some Server informaiton in the headers returned, so you can dump these out and it might help.
09-03-2013 01:41 AM
Thanks for reply, i am able to connect to server with details "apn=internet;tunnelauthusername=guest;"
as shown on link, but some time my application is not able to connect to server and some time working proper.
Is there any problem with my APN setting?
09-03-2013 04:24 AM
I presume you have specified "apn=internet;tunnelauthusername=guest;" for every request (ones that fail and ones that don't), but can you please confirm this?
Can you also confirm that you append this correctly?
Remember that the ";" separates the URL from the connection suffix and every parameter of the connection suffix is separated from the preceding parameter also with a ";". So I suspect most people would say the connection suffix to use in your case was actually:
Now getting on to your real concern:
"my application is not able to connect to server and some time working proper"
The information presented is not enough for us to speculate on what the problem is. It could simply be that you go out of network cover. It could be that some of your requests are badly constructed and so you get an error code from your Server. It could also be that your application does not recognize the data that is coming back from the Server in some cases.
Unfortunately you are going to have to investigate the failing connections and determine what actually happened. You will be looking for exceptions in the network processing or your processing, or unexpected error responses.
Until you do this and provide more information, we can't really help you.
09-05-2013 08:58 AM
Thank you guys for your response i got solution for my problem.
That was with APN setting. i was adding that with a semicolon but actual APN should
when i add that, my problem was solved.
Now i have one more problem in same, for that i will create another thread