Questions tagged [server-response]

The tag has no usage guidance.

server-response
Filter by
Sorted by
Tagged with
23 votes
2 answers
23k views

What exactly is the 'Waiting for response' msg on Firebug's Net tab?

As sou can see from the screenshot most of the time spent is waiting for a server response (thats the purple coloured area). What exactly is that server response time? Is the server too slow? Is my ...
Nicolas R's user avatar
  • 1,011
17 votes
3 answers
35k views

Why does Firebug show a "206 Partial Content" response on a video loading request?

I have a bunch of html5 video elements, with their preload attribute set to "auto". They start loading just fine, but I think there might be a problem with their caching, because each time I reload ...
CCrawler's user avatar
  • 619
14 votes
2 answers
1k views

NSURLSessionUploadTask how to read server response

I am using NSURLSessionUploadTask to upload a file. Here are some parts of my code not complete let session:NSURLSession = NSURLSession(configuration: config, delegate: self, delegateQueue: ...
RajuBhai Rocker's user avatar
9 votes
4 answers
12k views

How to get body as String from ServerResponse for test?

Say we have an instance of o.s.w.reactive.function.server.ServerResponse. What is the proper way to fetch the contents of its body, in other words how to implement fetchBodyAsString function? test(){...
diziaq's user avatar
  • 7,432
8 votes
5 answers
494 views

Javascript eval (and friends)

Some claim eval is evil. Any regular HTML page may look like: <script src="some-trendy-js-library.js"></script> </body> </html> That is, assuming the person ...
Christian's user avatar
  • 27.8k
7 votes
3 answers
3k views

Checking FTP status codes with a PHP script

I have a script that checks responses from HTTP servers using the PEAR HTTP classes. However, I've recently found that the script fails on FTP servers (and probably anything that's not HTTP or HTTPS). ...
Thomas Owens's user avatar
6 votes
2 answers
10k views

How can I return static files in PHP?

I use a .htaccess file to redirect all requests to the same index.php. From there, I decide what to do depending on URL of the incoming request. For now, I map the request URL to directory structure ...
danijar's user avatar
  • 33.4k
4 votes
1 answer
705 views

Reduce TTFB on PHP empty file

I have trouble reducing TTFB on PHP. Even when file is empty it needs about 100ms. It doesn't matter .php or .html, both need the same time. I have a decent server on HETZNER, server is not loaded ...
temo's user avatar
  • 650
3 votes
3 answers
5k views

Server response time is too long (ASP.NET MVC), how to find which operation is consuming so long time?

For some reasons my server response time is 18 seconds for one of the pages in my ASP.NET MVC application. How can I check which operation is taking that long? I want to know in what point of the ...
Zafar's user avatar
  • 3,394
3 votes
1 answer
2k views

Simple node.js server to return success or error

This is should be pretty simple, but I can't seem to get it to work as I intended. I just want a client submit a form with an email address, and node.js server looks up db and return success or error ...
yangtheman's user avatar
3 votes
0 answers
3k views

Retrofit Response{protocol=h2, code=404, message=, url=https://myurl/api/}

i am sending the request using retrofit2 but in response i am getting the following error Response{protocol=h2, code=404, message=, url=https://myurl/api/} here i am passing my base url to request ...
M. Umair A. Qayyum's user avatar
3 votes
1 answer
638 views

Handle null server response cases

I'm calling an endpoint to GET a list of objects from the server. Using Retrofit2.0 + RxJava for the api calls. The server has made it in such a way that when there are no items in the list, instead ...
petrrr33's user avatar
  • 601
3 votes
1 answer
590 views

Is it possible to find out server response time and client rendering time using Fiddler?

Hope you are fine, I rarely use Fiddler for my web calls. Now I have tuned some queries in my application. So I would like to test my server response time and client rendering time using Fiddler. Is ...
Sibeesh Venu's user avatar
  • 20.2k
3 votes
2 answers
271 views

Issue with NSURLConnection and server response

I am uses NSURLConnection to download files.(Basically I use JGDownload Accelerator) My issue is when I try to download files at one particular server, response provided by server is vary and gives ...
The iOSDev's user avatar
  • 5,247
3 votes
2 answers
5k views

How to get the status after using HttpServletResponse.setStatus

I have a Http Upload Servlet (http-post) and a user can upload an XML file along with some form fields. I have put on some validation checks to see if there was a bad request (eg. null value). So I ...
mona's user avatar
  • 6,199
2 votes
1 answer
835 views

how to parse JSON response from server and use it in comparison

I want to parse JSON response from server but I m unable to do it. please help me server response for connection success is Database connection success....{"server_response":[{"code":"reg_true","0"...
Kashaf Ahmed's user avatar
2 votes
1 answer
140 views

If server response is just a simple JSON, then why there are 5 different resources showing in my network tab?

I am learning node and wrote a simple app which returns just JSON data as response. There is no any error but I am not getting why there are 5 different resources (content.min.css, favicon.ico, ...
aagjalpankaj's user avatar
  • 1,180
2 votes
1 answer
534 views

Dojo informative message sent after xhrPost

Let's say that a request is sent to server via xhrPost and server finds that request needs more information to be processed (for example a variable is missing), so, a response is sent back to client ...
Ivo Silva's user avatar
  • 350
2 votes
1 answer
1k views

How to localize server-side responses on the client side in iphone programming?

I am using Chinese in my app. I have made a Localizable.string file in English and one in Chinese. I am doing it OK, and everything is working fine, but there are some string responses from the ...
Chatar Veer Suthar's user avatar
1 vote
4 answers
3k views

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 ...
user2511667's user avatar
1 vote
1 answer
27k views

http request taking too long time waiting for server response

We are using 3rd party website monitoring system to see if certain pages are loading well. I often see monitor showing up that it took more than 8-9 seconds to load our checkout page as shown picture ...
ChrisP777's user avatar
  • 359
1 vote
1 answer
243 views

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 ...
Lasitha Yapa's user avatar
  • 4,411
1 vote
2 answers
1k views

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 ...
anand's user avatar
  • 1,559
1 vote
2 answers
5k views

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 ...
Michael Victor's user avatar
1 vote
1 answer
639 views

how to correctly receive a response from the server in flutter(dart)?

I can't process the response from the server correctly in flutter. The user is created successfully in the database. In the postman application, I also get a response from the server: {"success&...
Xlain 8's user avatar
  • 21
1 vote
1 answer
183 views

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 ...
Ameya Savale's user avatar
1 vote
0 answers
241 views

How to return server response with output body not null?

When I return an exception, i can't return also the body. Once I get an exception I have to return the output of my body and the error message. I want that output is not null. { "output":...
Adrian's user avatar
  • 11
1 vote
0 answers
188 views

How to check if server is responding in Swift 5

I'm looking for a Swift 5 version of something like the fileExists function (below). For context I have an app that is heavily dependent on interaction with a remote server. For resilience we have ...
Mitch's user avatar
  • 111
1 vote
2 answers
3k views

How to reduce the time_starttransfer (TTFB) with AWS EC2

My website is on AWS EC2. I checked the TTFB (Time to First Byte) with this command: curl --output /dev/null --silent --write-out "time_namelookup=%{time_namelookup}\ntime_connect=%{time_connect}\...
MedMatrix's user avatar
  • 336
1 vote
1 answer
327 views

Image .onerror — Differentiate between server response 400 versus 200 but with a Content-Type that is not an image?

Given: const img = document.getElementById('img-id'); img.onerror = function() { … }; img.src = new_url; Changing the source of the image element may result in my very specific use case in either: ...
Serge Stroobandt's user avatar
1 vote
0 answers
16 views

The Time To First Byte Still High

I tested my website in webpagetest.org and there are the result : https://i.stack.imgur.com/3zXJp.png https://i.stack.imgur.com/cQR67.png I tried google it and finding a a way to solve the time to ...
evasim's user avatar
  • 109
1 vote
0 answers
352 views

PyQt5 - QWebEngineUrlRequestInterceptor for server respons content

For developing my browser application, I have installed a QWebEngineUrlRequestInterceptor, so I can filter the URLs being reuquested. I would like to now be able to have a similar thing but for the ...
SamG101's user avatar
  • 476
1 vote
0 answers
3k views

Node.js: How to find out contents of a 400 bad request?

I'm building a server with Node.js. For several reasons, I can't fire valid requests from client side (using an app or Postman). But I can log out data on the server side. Currently, one route is ...
J. Hesters's user avatar
1 vote
2 answers
501 views

$.fancybox is not a function (fancybox pop up ajax response)

I want to pop up the ajax response by fancybox, I saw the network section in console, the response is ok. But I am getting $.fancybox is not a function. thanks in advance! $("#mysubmit").click(...
Zain Deeb's user avatar
1 vote
1 answer
2k views

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 ...
Jona's user avatar
  • 1,041
1 vote
0 answers
94 views

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 ...
Jimmy GT's user avatar
1 vote
1 answer
770 views

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 ...
user avatar
1 vote
0 answers
1k views

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 ...
lior r's user avatar
  • 2,260
1 vote
1 answer
860 views

How to interpret server response for in-App purchase verifying receipt request?

I am using in App purchases in my application. I am sending a request to the server for verifying the transaction receipt for the purchased product using the following method: -(void)...
iPhoneDev's user avatar
  • 1,557
0 votes
3 answers
3k views

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 ...
Shruti's user avatar
  • 1
0 votes
2 answers
3k views

Create Android layout with buttons from server response

I checked around and and I can never quite find something that helps me with what I am trying to accomplish. In my Android app I want to be able to make a request to the server for some data, when ...
TheHamstring's user avatar
0 votes
1 answer
646 views

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 ...
Jeet's user avatar
  • 105
0 votes
1 answer
60 views

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, <p style="font-family:Arial, Helvetica, sans-serif; font-size:18px;"> <strong>XXX Pvt Ltd. has been used 3 times.The contact information ...
manini's user avatar
  • 358
0 votes
2 answers
421 views

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 ...
jeffmayn's user avatar
  • 2,187
0 votes
1 answer
646 views

Handling REST API server response

I've been working with REST API CodeIgniter for more than a year and usually when I want to return any response I will return 200 for all kind of request. I know that there are status code provided ...
Leon's user avatar
  • 329
0 votes
1 answer
180 views

Why I am Not receiving proper respond after giving request to server through parameter(ID) in RESTAPI using NODEJS & EXPRESSJS

Node module named dishRouter.js implements the Express router for the /dishes/:dishId REST API endpoint. index.js const express = require('express'); const http = require('http'); const morgan = ...
mohan_mecherla's user avatar
0 votes
1 answer
2k views

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 ...
user avatar
0 votes
1 answer
261 views

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 ...
Adi's user avatar
  • 400
0 votes
1 answer
66 views

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 ...
danijar's user avatar
  • 33.4k
0 votes
1 answer
38 views

Tuning SQL for better server repsonse time

My SQL script scans ~7000 records and retrieves 100 of them randomly, also pulls correlative data from an additional table (via SQL JOIN). My server response time is extremely slow using this code (>7 ...
rhill45's user avatar
  • 569