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 7579597
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T17:42:57+00:00 2026-05-30T17:42:57+00:00

I send a rest request to a server and getting back a status 200

  • 0

I send a rest request to a server and getting back a status 200 ok, but there is no content in the response.

$.getJSON("http://192.168.0.94:8084/datasnap/rest/TServerMethods1/ReverseString/sfasda/", function(data) {
  alert(data);
});

I debugged with firebug this and are the headers:

Connection  close
Content-Length  21
Content-Type    text/html; charset=ISO-8859-1
Pragma  dssession=188802.418847.903604,dssessionexpires=1200000
Request Headers
Accept  application/json, text/javascript, */*; q=0.01
Accept-Charset  ISO-8859-1,utf-8;q=0.7,*;q=0.7
Accept-Encoding gzip, deflate
Accept-Language en-us,en;q=0.5
Connection  keep-alive
Host    192.168.0.94:8084
Origin  http://192.168.0.92
Referer http://192.168.0.92/visuals/index.php?page=pincodescreen
User-Agent  Mozilla/5.0 (Windows NT 5.2; rv:5.0) Gecko/20100101 Firefox/5.0

what do i wrong?

  • 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-30T17:42:58+00:00Added an answer on May 30, 2026 at 5:42 pm

    Your doing a cross domain request, which won’t work due to JavaScript same origin policy. Your request originates from a document of http://192.168.0.92, while the target is http://192.168.0.94:8084/. To my knowledge even different ports trigger the policy making it inpossible to request data directly.

    Assuming you have control over the second server, rewrite your request to use JSONP.

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

Sidebar

Related Questions

I am trying to send a GET request to a REST server using Java.
I have an existing REST application on my server. For example, if you send
I need to send a JSON request to a REST service. I'm using Restkit
I'm building REST web app and my server side Java code expects request body
There is a self hosted WCF REST service, need to send an xml post
I trying to make http - post call. The server that i send him
I'm trying to send a simple POST request to a REST web service and
im trying to send rest api Users.getLoggedInUser i have all the secret session and
Do Java REST frameworks like Restlet and Jersey allow one to send a file
I need to send PUT and DELETE along with POST, GET to a REST

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.