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

  • Home
  • SEARCH
  • 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 8492535
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T22:44:42+00:00 2026-06-10T22:44:42+00:00

Is it possible to send a JSON object through an URL? I made scaffold

  • 0

Is it possible to send a JSON object through an URL?

I made scaffold in a rails test app where the controller receives a JSON object. In another hand, I have a GUI build it in Flex. How should I send the JSON from my flex app?

When I try to access through this url:

http://localhost:3000/test

the rails app inserts an empty object but when I add a parameter Flex show me the following message: InvocationTargetException:The URL is not valid.

How I can send it without another library like RubyAMF….? Is it possible to send it just using flex > json > rails ?

  • 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-06-10T22:44:44+00:00Added an answer on June 10, 2026 at 10:44 pm

    solve it with:

    req = new URLRequest("http://localhost:3000/tests/"+market_id);
        jrwloader  = new URLLoader();
        params = new URLVariables();
        req.data = strXml.toString();                               
        req.method = URLRequestMethod.POST;                                                         
        req.requestHeaders.push(new URLRequestHeader("X-HTTP-Method-Override", URLRequestMethod.PUT));                                                          
        **req.requestHeaders.push(new URLRequestHeader("Content-type", 'application/xml'));**             jrwloader.load(req);
    

    thanks all!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was wondering, is it possible to send a json object encoded in php
Is it possible to send data to another C++ program, without being able to
Is it possible to send json and receive json using spring webservices? Thanks Damien
Is it possible to send a selector to another class and have it perform
Is this possible? xmlHttp.send({ test : 1, test2 : 2, }); Maybe with: a
Possible Duplicate: JSON order mixed up By Microsoft convension i need send Json as
Is it possible to tell jqGrid to send all search options in JSON format
I want to send a JSON object to a PHP file while my script
I am trying to send an object via an ajax POST using JSON payload;
just to know, is it possible to send password through an Ajax request safely?

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.