Reply to topic  [ 2 posts ] 
A bit of programming help 
Author Message
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 7:35 pm
Posts: 6580
Location: Getting there
Reply with quote
Say, for instance, I regularly visit a website and I am a member (registered user - i.e. have a username and password) of the website and I access details that only I can see on a regular basis. (I am not talking about the forum it is a fitness training website).

At the moment the web interface of the site is very basic and doesn't work at all in some parts.

There will be some kind of database behind the website holding the data.

What exactly would I need to know in order to write an application (iPhone app) that could access the database (with authorisation)?

I'm guessing I would need some kind of URL for the database but surely the authorisation would come from the user? Would I be able to write the app by reverse engineering the html source from the site or would I need to contact someone in the company?

Thanks for any help.

(I want to do this legitimately but would like to have something to show someone before contacting them).

_________________
Oliver Foggin - iPhone Dev

JJW009 wrote:
The count will go up until they stop counting. That's the way counting works.


Doodle Sub!
Game Of Life

Image Image


Tue Nov 03, 2009 9:53 am
Profile WWW
What's a life?
User avatar

Joined: Thu Apr 23, 2009 8:25 pm
Posts: 10691
Location: Bramsche
Reply with quote
You would need the owner of the website to open up the database for access by third party IP adresses - something they are very unlikely to do and securing sites is hard enough without deliberately opening them to attack!

You wouldn't need a URL, just the IP adress of the database server and its port number. Then you should be able to access it with ODBC/JDBC etc. But the site owner will, generally, need to add the IP address of the client to the list of allowed addresses. As the iPhone doesn't have a fixed IP Address, this wouldn't be possible, which would mean that they would need to open the database up to any IP address, which is a bad thing!

The best solution would be for them to write a web API which you could access, which would authenticate your user account on the website and provide you with preset information that you can use. That would involve a lot of work on their side, unless they are using a packaged product, which provides an API already.

_________________
"Do you know what this is? Hmm? No, I can see you do not. You have that vacant look in your eyes, which says hold my head to your ear, you will hear the sea!" - Londo Molari

Executive Producer No Agenda Show 246


Tue Nov 03, 2009 10:49 am
Profile ICQ
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 32 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.