Questions tagged [server-response]

98 questions
0
votes
0 answers

Response code 200 instead of 500 laravel with angular js

I am facing issue with my project where i am calling API from Angularjs front end to laravel backend api. In my authenticationcontroller.php in authenticate method i am returning return response()->json(['error' => 'Oops! you are not allowed to log…
jack
  • 589
  • 8
  • 22
0
votes
1 answer

getting a List back from a server using retrofit

I'm new to using Retrofit for networking in Android. So far I have successfully written code that sends a String to a PHP server. The server is configured to take my string, which contains a system ID and a password…
user8910699
0
votes
1 answer

Clip all the data except a certain data from server response to use in app

I am getting a response from the server as below,

XXX Pvt Ltd. has been used 3 times.The contact information for XXX can only be viewed -4 more times on App until it…

manini
  • 358
  • 1
  • 4
  • 14
0
votes
0 answers

jquery hide div on server response

I have this jquery script for showing a div on server response function valLogin(){ //testing regular expression var var1 = $("#username").val(); var var2 = $("#password").val(); $.ajax({ //Make the Ajax Request type: "POST", …
0
votes
1 answer

Showing response from the server dynamically

I am sending a request to some servers in parallel but their responses don't come at the same time. I have to show the response on an html page. One way is to wait for all the responses and when all the responses arrive, show them. What I want to do…
Vivek Mangal
  • 532
  • 1
  • 8
  • 24
0
votes
1 answer

How to detect PHP script is being used as ErrorDocument for 404 Not Found?

Let's say I have a test.php file, configured to handle Apache 404 errors with ErrorDocument 404 /test.php What PHP code do I have to add to check if we're really handling a 404, and test.php has not been called directly? Like:
user7128548
0
votes
1 answer

Custom server response instead of OK . Android file upload

i'm creating an android application which upload files to web server . my code is working successfully but i'm getting server response message "OK" but i want it "success" or something else which i write on php echo but I am not sure how to do…
Abhishek Singh
  • 9,008
  • 5
  • 28
  • 53
0
votes
1 answer

Simple push notification without gcm like things

I want to implement a push notification in android app without gcm like things.I want to handle all action from my side(android) . Till now I have a json response.Which i am trying to use in push notification.and my push notification works on click…
0
votes
1 answer

Not geting correct server respond in android app

AsyncTask main method: public class ConnectToServerAsyncTask extends AsyncTask { private Context context; public ConnectToServerAsyncTask(Context context) { this.context = context; } @Override …
123name
  • 21
  • 1
  • 5
0
votes
0 answers

Chat page using jQuery's $.ajax and PHP not updating in a timely manner

I'm building a chat page for members of one of my websites. Everything works properly for me, except for the chat's automatic updates. The chat page is supposed to check for new messages every 5 seconds, and manipulating the callbacks shows that…
0
votes
1 answer

Trying to take server response

I'm trying to creat a simple web app that shows the server response in a page but I'm pretty newbie. When acessing this page https://api.minergate.com/1.0/pool/profit-rating, it generates a response. How do I can capture it and put it in my HTML…
0
votes
1 answer

Improving the user experiense of a slow Flask view

I have an anchor tag that hits a route which generates a report in a new tab. I am lazyloading the report specs because I don't want to have copies of my data in the original place and on the report object. But collecting that data takes 10-20…
Iluvatar14
  • 699
  • 1
  • 5
  • 18
0
votes
1 answer

How to handle preliminary models while waiting for server responses?

In an Android app I work on, models are stored globally and activities are notified about changes like created, updated and deleted models. The according callbacks are called after receiving the server response. There is a main activity that lists…
danijar
  • 32,406
  • 45
  • 166
  • 297
0
votes
0 answers

servlet error response message

I am a bit new to web programming..so. I am writing user register for an app. On server side I use Java, Tomcat and servlet, and on the client side jQuery. I want to check if the user I am registering exist and if so, I want to response with the…
Ivaylo Pankov
  • 99
  • 1
  • 5
0
votes
0 answers

Server response time not decreasing

I am using PageSpeed to test my website (home page | ~0.6Mo) currently hosted on my computer (wampserver on windows) and PageSpeed indicates that my server response time is high (0.6s to 1.2s). I tested the home page of some website I hosted on…
mdnfiras
  • 882
  • 1
  • 15
  • 28