Re: Open safari and send post variables
Re: Open safari and send post variables
- Subject: Re: Open safari and send post variables
- From: Paul Lynch <email@hidden>
- Date: Fri, 9 Jun 2006 17:07:57 +0100
Why not just use NSURLConnection? You need to create a NSURLRequest,
set the HTTPMethod to "POST", and supply a HTTPBody with your post
values.
Thinking about using Safari is a dead end, but the suggestion to
consider WebKit is a good one.
Usual disclaimer - I haven't done this, but the docs sure look
convincing.
Paul
On 9 Jun 2006, at 16:45, Yorh wrote:
This is my problem:
I have a web site and I need to register my users via my app with
post variables to make it more secure than get.
But I would like to do it via browser because the app send a unique
code to my mysql daemon ...
So i need to open by clicking a button my web page with all the
variables loaded (sent by the app).
I know I can use GET vars but I really don't like that solution...
thank you for support
Yorh
On 09/giu/06, at 17:37, Ken Tozier wrote:
On Jun 9, 2006, at 11:11 AM, Keary Suska wrote:
on 6/9/06 7:55 AM, email@hidden purportedly said:
I know what you mean , but there are some problems:
1- In the URL field I will see the tmp path of course and not the
site URL
2- The images of that web site will not loaded because the path...
So I don't think this is the correct way to interact trough cocoa
with a web site...
But if you have some other idea... :)
Do you specifically want the user to interact with Safari? Or are
you just targeting Safari because it loads images for you
automatically? What if the user prefers to use Firefox, OmniWeb,
Opera, Shiira or (holds nose) IE?
You mentioned loading images so are you really trying to read the
contents of a url extracting the images so you can display them to
the user? I'm sure there is someone (either Apple or third party)
has a Cocoa class that can read html files. You might even be able
to do it with NSXMLParser with a few tweaks.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden