Questions tagged [server-response]

98 questions
1
vote
2 answers

Server response time in browser

After all searches in google I cant found answer. I have requested for some data from server. it takes some time to load in browser. I don't know whats happening. So I have pasted the browser network time. I want to is, server response is slow or…
anand
  • 1,559
  • 5
  • 21
  • 45
1
vote
1 answer

How to test client app without creating a server?

Is there anyway to create a server response manually to check whether my client side is working correctly to server responses? I want to do this without writing the server part myself. What I specifically want is to test a server-sent event handling…
Lasitha Yapa
  • 4,309
  • 8
  • 38
  • 57
1
vote
1 answer

How to GET from Python server to Javascript Client?

Hiyo, I've setup a Python server with a GET request which seems to work, but for some reason I can't send anything back to the requesting client, which is coded in Javascript. Python Server: import time import BaseHTTPServer HOST_NAME =…
Jona
  • 1,023
  • 2
  • 15
  • 39
1
vote
0 answers

EASYSMPP- Capture the exact reponses from SMPP server

I am using EASYSMPP to send SMSes through an SMPP server, however am unable to capture the exact responses from the SMSC because the function client.SendSMS, returns either TRUE(for sent SMS) or FALSE(for a failed SMS). I want to be able to log…
Jimmy GT
  • 69
  • 5
1
vote
2 answers

Response status code for true and false?

I am checking whether a particular email address already exists in the database or not, an AJAX function sends the email address for the server to check. What is the best way for the server to respond? Should the response be just true or false or…
Michael Victor
  • 861
  • 2
  • 18
  • 42
1
vote
4 answers

New Wordpress install with very long response waiting time

My website has a long response time (3 sec). I tried deactivating all plugins one-by-one and checking, but it's waiting time is 2 sec. I also use w3-cache and wp-cache on my live domain, but waiting time is 3 sec. Today I downloaded the new…
user2511667
  • 153
  • 1
  • 4
  • 13
1
vote
1 answer

HTTP request denied ( 3xx 4xx responses )

i ve decieded to ask this question after reading HTTP 1.1 usage. i don't get why i cannot access even www.google.com . its giving 3xx to 4xx(nearly all errors) error everytime. i ve tried every combination of these GET HOST CONNECT thingys in…
Yakup Türkan
  • 576
  • 2
  • 6
  • 21
1
vote
0 answers

server first byte time or (Improve server response time)

Im running a wordpress site on amazon EC2 (m1.medium) . Im using CDN serve files and using W3C total cache to increase performance ( i cannot use page cache because im serving dynamic content and using PHP sessions. I am using mod_deflate to keep…
lior r
  • 2,220
  • 7
  • 43
  • 80
1
vote
1 answer

Receiving extra info from server response

HI I am sending a username to my php file located on the server to check if the username exists in my database. If it does I want to send back a response which contains only "False", or else it will send back "True". Here is my php…
Ameya Savale
  • 431
  • 1
  • 8
  • 21
0
votes
3 answers

Is there an easy way to parse this text & xml server response with PHP?

I'm using PHP and since this server response is not pure XML I've been struggling with trying to turn the responses into variables/arrays for use. I'm only concerned with the variable contained in the XML tree. There can be multiple containers…
Rob
  • 79
  • 1
  • 9
0
votes
3 answers

Handle Server Response in Android

In my application I am fetching data using webservices.But when the server is down or not in active state it gives response code 500 and my application force close. Please guide me how to handle this condition in my application.The logcat output is…
Shruti
  • 1
  • 13
  • 55
  • 95
0
votes
0 answers

HTTP response header for credentials

Is there some HTTP response header intended for authentication/credentials-data except for Set-Cookie? I am working on an HTTP API which transfer authentication tokens in cookies. I need to add support for a legacy system which supports all HTTP…
Nitradamus
  • 111
  • 1
  • 4
0
votes
2 answers

Getting the error 'Cannot set headers after they are sent to the client' in node.js

I have a frontend and server-backend, where I send a request to the backend for some book-information. The backend then calls an API for this information and returns it to the frontend. It all works fine at the first request. If I do another request…
jeffmayn
  • 1,785
  • 2
  • 9
  • 22
0
votes
1 answer

Node JS error: Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client

I am trying to implement authentication in my app. However, app is throwing cannot set header error when registering user. I am not able to wrap my head around why passing thru error handling function "wrapAsync" is thrown this error. Error…
0
votes
1 answer

Can you specify error with HTTPS-206 response?

I have this use case, where sometimes the code might be partially successful. Can I return the response in such case were I respond with HTTPS-206, saying,"There was an internal server error in following cases."? Does 206 code spec, specifies not to…
Jeet
  • 85
  • 3
  • 8