• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Open safari and send post variables
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Prev by Date: Remember last saved file
  • Next by Date: Re: Open safari and send post variables
  • Previous by thread: Open safari and send post variables
  • Next by thread: Re: Open safari and send post variables
  • Index(es):
    • Date
    • Thread