Re: Open safari and send post variables
Re: Open safari and send post variables
- Subject: Re: Open safari and send post variables
- From: Dan Parnell <email@hidden>
- Date: Fri, 9 Jun 2006 07:07:09 -0400
Well, to get Safari (or whatever the current user's default browser
is) to open a URL, you can do this:
NSURL *someUrl = [NSURL URLWithString:@"http://dan.parnell.name/"];
if ([[NSWorkspace sharedWorkspace] openURL:someURL])
NSLog(@"Opened successfully.");
else
NSLog(@"Failed to open URL.");
However, I know of no way off the top of my head to feed a browser
HTTP POST information to send to that URL. Would it be possible for
your implementation to use HTTP GET instead, in order that the data
you need to pass can be appended onto the end of the URL itself?
Regards,
Dan Parnell
webmaster @ dp:design
http://dan.parnell.name/
On Jun 9, 2006, at 6:36 AM, email@hidden wrote:
Message: 15
Date: Fri, 9 Jun 2006 12:31:17 +0200
From: Yorh <email@hidden>
Subject: Open safari and send post variables
To: email@hidden
Message-ID: <email@hidden>
Content-Type: text/plain; charset=US-ASCII; format=flowed
Hi to all,
I need to open with safari an url and send POST variables to a page.
I read about NSURLCopnnection but it doesn't seem to be the right
class.
Anyone knows how to do it (without Apple script).
Thanks to all
Yorh
_______________________________________________
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