• 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
Submitting a web form?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Submitting a web form?


  • Subject: Submitting a web form?
  • From: Laurent Daudelin <email@hidden>
  • Date: Wed, 10 Nov 2010 15:10:42 -0800

Hello all.

I'm downloading a web page that contains a form with NSURLConnection. The form contains a few fields that I can fill with values.
Here is the form part:

<form id="loginform" action="/openid/loginsubmit" method="post" style="position:relative; style="position:relative;"">
	<h2>Sign In</h2>
	<div class="block-content">
		<p>
			<label for="first_name">First Name:</label>
			<input type="text" size="25" name="first_name" id="first_name" value=""/>
		</p>
		<p>
			<label for="last_name">Last Name:</label>
			<input type="text" size="25" name="last_name" id="last_name" value=""/>
		</p>
                <!--
			<p>
				<input type="text" size="25" name="username" id="username" value=""/>
			</p>
		-->
		<p>
			<label for="password">Password:</label>
			<input type="password" size="16" name="password" id="password"/>
		</p>
		<p class="resetpass"><a href="https://somewebsite.com/account/request.php?lang=en";>Forgot your login information?</a>
		</p>
      </div>
	<div class="clearfix" style="padding-left:38%">
		<button type="submit" name="Submit" class="css_button_hot btn_large primary">Login</button>
	</div>
	<input type="hidden" name="return_to" value="https://somewebsite.com/"/>
	<input type="hidden" name="previous_language" value="en_US"/>
	<input type="hidden" name="language" value="en_US"/>
</form>

Now, how would I submit it back to the server?

Thanks in advance for any pointer, info or help!

-Laurent.
--
Laurent Daudelin
AIM/iChat/Skype:LaurentDaudelin 				http://www.nemesys-soft.com/
Logiciels Nemesys Software              			email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Submitting a web form?
      • From: email@hidden
    • Re: Submitting a web form?
      • From: Conrad Shultz <email@hidden>
  • Prev by Date: Re: Issues in specifying the file extensions for NSOpenPanel
  • Next by Date: Re: Submitting a web form?
  • Previous by thread: Re: Documentation Hard Copy?
  • Next by thread: Re: Submitting a web form?
  • Index(es):
    • Date
    • Thread