Communicating with Websites?
This isn't directly a game development question but I guess it's not too much out of place...
I clock in and out of work using a php time clock through http in a browser. I pick my name from a drop down list, pick my status (in, lunch, out, etc.), and can optionally leave a note in a field. Then I click "send" and it clocks me in/out.
Since this web form is so basic, it doesn't give me any way to track my hours worked and I'd like to be able to do that in a light Cocoa application. What I'd like to be able to do is, send the server the same data that is being sent from the web form; name, status, etc., but through Cocoa.
Basically, instead of clocking in from the website, clock in from a Cocoa app that also tracks my hours. I looked at NSURL a little bit but it doesn't seem to be what I need. I'm not even sure where to get started with this one since I have little to no web development/web programming experience other than low level sockets programming. Thanks again!
I clock in and out of work using a php time clock through http in a browser. I pick my name from a drop down list, pick my status (in, lunch, out, etc.), and can optionally leave a note in a field. Then I click "send" and it clocks me in/out.
Since this web form is so basic, it doesn't give me any way to track my hours worked and I'd like to be able to do that in a light Cocoa application. What I'd like to be able to do is, send the server the same data that is being sent from the web form; name, status, etc., but through Cocoa.
Basically, instead of clocking in from the website, clock in from a Cocoa app that also tracks my hours. I looked at NSURL a little bit but it doesn't seem to be what I need. I'm not even sure where to get started with this one since I have little to no web development/web programming experience other than low level sockets programming. Thanks again!
stringWithURL may be closer to what you want, since you can check the results against what the website would normally pass to you.
You would call something like [NSString stringWithURL: @"http://website.com/php?time=xuser=y"]
then you can test that string across whatever the result page will give you.
You would call something like [NSString stringWithURL: @"http://website.com/php?time=xuser=y"]
then you can test that string across whatever the result page will give you.

