Adobe Flex Quick Tips

Adobe Flex 3 learning. Quick tips and tutorials about Adobe Flex 3, Flex Builder and Action Script 3.

Monday, March 23, 2009

Send parameters using POST

If you want to send parameters using POST you need to create a new url request using this code:


var request:URLRequest = new URLRequest([http://URL.url]);
var urlVars:URLVariables = new URLVariables();

urlVars.field1 = [field1];
urlVars.field2 = [field2];
request.data = urlVars;
request.method="POST";

navigateToURL(request,["_self","_blank"]);
Publicado por Julianjdr en 9:28 AM
Etiquetas: actionscript, application, developer, flex, post, request, ria, web

No comments:

Post a Comment

Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ▼  2009 (5)
    • ▼  March (4)
      • Send parameters using POST
      • Youtube videos in Flex
      • BarCode generating
      • Generating PDF files
    • ►  February (1)

Tags

  • actionscript (1)
  • add-on (1)
  • api (1)
  • application (1)
  • bar (1)
  • barcode (1)
  • code (1)
  • component (1)
  • custom (1)
  • developer (1)
  • flex (1)
  • generate (2)
  • library (2)
  • pdf (1)
  • player (1)
  • post (1)
  • request (1)
  • ria (1)
  • video (1)
  • web (1)
  • youtube (1)

RSS Subcription

Posts
Atom
Posts
Comments
Atom
Comments