Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7630071
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T06:00:17+00:00 2026-05-31T06:00:17+00:00

I am writing a flex3 tool for our uber-geeks. The tool is for futzing

  • 0

I am writing a flex3 tool for our uber-geeks. The tool is for futzing around with sharing URLs to various various social sites.

private function submitRequest(evt:Event):void {

var requestURL:URLRequest = new URLRequest(constructURL());
requestURL.method=URLRequestMethod.POST;
var header:URLRequestHeader = new URLRequestHeader("og:title", "petertitle");
requestURL.requestHeaders.push(header);
navigateToURL(requestURL,"_blank");
}

I want allow the developer to manipulate the following meta headers in the outgoing html request when navigateToURL() is called.

<meta property="og:title" content=title" />
<meta property="og:description" content="description" />\
<meta property="og:image" content="......" />
<meta property="og:video" content="......"/> 
<meta property="og:video:height" content="640" />
<meta property="og:video:width" content="480" />

Unfortunately google is not showing me any example of how to add the above meta headers to my instance of URLRequest in flex. AND the new URLRequestHeader is blowing up.

ArgumentError: Error #2096: The HTTP request header og:title cannot be set via ActionScript.
at global/flash.net::navigateToURL()

Can someone point me at an example of putting the meta headers into a URLRequest?



additional

Looks like I am in a catch 22 situation.
I wrote the app to run in a flash player.

  1. apparently the flash apps run from flashbuilder are not permitted to perfom http PUT method operations. it alwasy does GET
  2. flash apps run from flashbuilder will not write headers on http GET calls.

But I am still not finding a way to add an http “meta” header tag in flex… perhaps adobe air.

Current work around.

I can call an external javascript function that will do a post, but however the XmlHttpRequest infrastructure only want to setRequestHeader(key,value), and seems to need to be from a very specific list of strings. setRequestHeader(“foo”,”bar”) did not add a foo header in my outgoing request.

There does not seem to be a way to add the header meta tag. via javascript. Or at lease I am not finding it off of google.

Hoping someone can now point me at how to do that?????

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T06:00:19+00:00Added an answer on May 31, 2026 at 6:00 am

    What a pain. I would have thought someone would have run into this before and posted such a solution

    setRequestHeader(arg1, arg2) ouptputs “< arg1 arg2 />” in the outgoing http request
    so if I

     xmlhttp.setRequestHeader("meta","property=\"og:description\" content=\"description\"");
    

    then the outing html

    <head>
       ....
        <meta property="og:description" content="description"/>
       ....
    </head>
    <body>
    ....
    </body>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing a calculator with an ability to accept new function definitions. Being aware
I'm writing an Air application using only Actionscript, and Flex3 SDK as the compiler.
I'm writing a app with Flex/air,and i need a function that downloading files to
I am writing a Flex application for use on a private intranet with no
I'm writing a Flex application and I came across what I think is a
I'm writing a custom flex file to generate a lexer for use with JSyntaxpane.
I am writing a custom flex preloader which extends the IPreloaderDisplay class. How can
We are writing an app that will use T4 to generate Flex/Actionscript to compile
I'm writing a mock backend service for my flex application. Because I will likely
I was writing the layout of an app using the box-flex property (in Chrome)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.