FAQ Database Discussion Community


How to dynamically concat a block of byte stream from http response in javascript?

java,javascript,http,httprequest,concat
So, I want to send a stream of bytes to the browser(for example a pdf) so he can show it to the user. if (bytesToRead == -1) { bytesToRead = (int)fullPathFile.length();} byte[] buffer = new byte[bytesToRead]; int bytesRead = -1; if((inputFileInputStream != null) && ((bytesRead = inputFileInputStream.read(buffer)) != -1)){ if...

Android-Reduce the time when retrieving data

android,time,httprequest
I'm using httpRequest in Android to retrieve and store data from an online shopping website(such as lazada.com.my). Anyhow, I've notice that this method would require several minutes in order to complete the whole httpRequest. I was wondering are there any other method to reduce the time required to retrieve data...

How do I send CSRF token authenticity from a php app that I own to a rails app that I own?

php,ruby-on-rails,httprequest,csrf,sugarcrm
I am an admin for a sugarCRM instance and I have a rails app on heroku. I want to be able to automatically add contacts to the rails app if they are added in sugarCRM. I have written a before_save logic_hook in my sugarCRM: function pushConts($bean, $event, $arguments) { $r...

How to send pre request before every request in windows phone 7

windows-phone-7,httprequest
I want to send one pre request to my server before send every request. From that pre request I will receive the token from my server and than I have to add that token into all the request. This is the process. I have try with some methods to achieve...

How to get the url of the requesting site with pyramid

python,httprequest,pyramid
I'm writing a small app with pyramid. One view serves files with a FileResponse. What I want to do is limiting those files to certain domains. If this site http://www.example.com/index.html includes a file like: <img src="http://myapp.com/servethisfile" /> I want to know the domain of the site which requests a file...

AFNetworking concurrent Http requests

objective-c,performance,cocoa,connection,httprequest
I need to download around 200 Files from an API. They are all only around 15KB. My current code looks likes this: NSOperationQueue* opQueue = [[NSOperationQueue alloc]init]; [opQueue setMaxConcurrentOperationCount:8]; NSString* baseUrl = @"https://someapi.com/somejson.json?page="; for(int n = 0; n <= numberOfPages; n++) { @autoreleasepool { NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:[NSString...

How to authenticate a HTTP request to an OrientDB function on AngularJS?

angularjs,httprequest,orient-db
I have the following OrientDB function: http://cmdrafernando:2480/function/ApplicationVtaf/getPassFailCount/9:600 And it returns the following JSON result: {"result":[{"@type":"d","@version":0,"pass":16.0,"fail":2.0,"@fieldTypes":"pass=d,fail=d"}]} What I need to do is to get the values of "pass" and "fail" to use in my web page. So far I have done this with AngularJS: $http.get('http://cmdrafernando:2480/function/ApplicationVtaf/getPassFailCount/9:600'). success(function(data) { $scope.data = data.result; //...

What request headers are required for a POST containing XML?

xml,excel,vba,post,httprequest
From Excel VBA, I am POSTing to an API that takes XML as one of the parameters. It works fine unless there are ampersands(&) in the XML. I have escaped them to &amp; but I still get an error back from the API telling me there are disallowed characters. I...

Quickbooks create a TimeActivity

swift,httprequest,quickbooks,intuit
How can I make a POST request to create a time activity for my company on Quickbooks from a mobile app? I've got authorisation working fine, now I just need to know how to create items. For the HTTPBody of the request, what should I enter?

Api Call Error in Xcode 7 / iOS 9 (how to setup App Transport Security in plist)

ios,httprequest,xcode7,ios9
I am using xcode 7 beta version. Now, I am working an API. If, I use the API in Xcode 6.3 it works fine but when same API I used in xcode 7 error message appears Unable to parse. here is the API i am using Please help me out....

Parse HTTP request without using regexp

c++,string,parsing,httprequest
I'm using a regex to separate the fields of an HTTP request: GET /index.asp?param1=hello&param2=128 HTTP/1.1 This way: smatch m; try { regex re1("(GET|POST) (.+) HTTP"); regex_search(query, m, re1); } catch (regex_error e) { printf("Regex 1 Error: %d\n", e.code()); } string method = m[1]; string path = m[2]; try { regex...

Python urllib response returns file with added blank lines

python,xml,httprequest,response,urllib
While testing services I created a function in python that call http request on access point URL. Response is saved to the file in a given path. import urllib.request import urllib.response import urllib.parse def get_response(service_access_point, request_parameters, response_file_path): req = urllib.request.urlopen(service_access_point.format(request_parameters)) res = req.read().decode('utf-8') response_file = open(response_file_path, 'w') response_file.write(res) response_file.flush() response_file.close()...

How to mock the UserAgent property for an HttpRequest in a unit test?

c#,.net,unit-testing,httprequest,httpcontext
I am trying to create a fake HttpContext for my unit test and also wanted to set the UserAgent property. I tried the below code, but it failed saying platform not supported. var httpRequest = new HttpRequest(null, "http:xyz.com", null); httpRequest.Headers["UserAgent"] = "unitTest"; var stringWriter = new StringWriter(); var httpResponce =...

Curl POST is executed as a GET

php,curl,httprequest
I'm trying to develop a kind of Browser with PHP. So far my class can process a GET or a POST request with this Content Type: application/x-www-form-urlencoded. Now I need to move to a JSON one. I've set the Content-Type header to application/json. The fact is, with this type I...

How to make http request to external service in Laravel5?

api,httprequest,laravel-5
I have an application in Laravel5. What I need is to be able to call an external api and then process the response from the api accordingly. The response I will get in return is in the form as an xml tag as follows with either True or False <statusCheck...

Node js using data returned from request/request api call

javascript,node.js,request,httprequest
I am making a node api call using npm request Here is some basic sample code request = require('request'); ApiRequest = function (options) { this.uri = 'http://sampleapi.com/' + options.path, this.method = options.method, this.json = options.json }; ApiRequest.prototype.call = function () { request(this, function (error, response, body) { if (body) {...

Choosing between package:html, dart:html, dart:io (class HttpClient) and package:http APIs to fetch HTTP resources

android,dart,httprequest,api-design,dart-pub
I realized that currently there are at least three "official" Dart libraries that allow me to perform a HTTP request. What is more, three of those libraries (dart:io (class HttpClient), package:http and dart:html) have each a different, incompatible API. As of today, package:html does not offer this functionality, but on...

Slim framework and GET/PUT/POST methods

api,methods,httprequest,slim
For example, i use this code for testing routes: $app->get('/api', function () { echo 'get!'; }); $app->post('/api', function () { echo 'post!'; }); $app->put('/api', function () { echo 'put!'; }); For api testing i use RestClient plugin for Chrome. When i try do GET request, response is 'get!'. Its good....

When a friend sends me link it sometimes doesn't work like in his computer?

http,url,webserver,httprequest,httpresponse
I read somewhere that it's because the URL doesn't contain the body of the HTTP request. Is it true? If so, can someone please explain? Thanks!...

access to Servlet backend's ip address from a physical device (not from emulator)

google-app-engine,servlets,android-studio,httprequest,android-networking
I added a Java app engine servlet backend to my app, and in my "client" I have a ServletPostAsyncTask class performing an http request to my backend. If I use an emulator, I can access my backend through the IP address 10.0.2.2:8080, but if I run on a physical device,...

QPX Express Airfare API return The remote server returned an error: (400) Bad Request

c#,asp.net,json,api,httprequest
I am using QPX Express Airfare API for purpose of getting airline fare in JSON format so I enabled QPX Express Airfare API via google developer console then generate API key accordingly. I test my api key & json request via QPX Express demo . its working fine but I...

How do I know the requirements for a logged in web session?

python,session,request,httprequest
The following python script usually works to automatically fill in a login webform: import requests payload = { user : myusrname password : mypass ...etc... } s = requests.Session() s.post(formurl, data = payload) r = s.get(protectedurl) However on some websites, the above seems to fail to start the session. I...

Python Logging: Group logs which belong to one request

python,logging,httprequest
Is there a way to group logs of a python web application which belong to one web request? Example: 2015-02-11 13:06:32 myapp.middleware.MYAPPMiddleware: INFO Login of user foo was successful 2015-02-11 13:06:32 myapp.middleware.MYAPPMiddleware: INFO Login of user bar failed 2015-02-11 13:06:32 myapp.send_mails: INFO failed to send mail to [email protected] The above...

Android fails when trying to GET http request

java,android,json,get,httprequest
I'm trying to get information from a http request but it shows the following error: > 06-17 18:06:05.931 10913-10913/com.example.user.project > E/RecyclerView﹕ No adapter attached; skipping layout 06-17 > 18:06:05.947 10913-10913/com.example.user.project E/AndroidRuntime﹕ > FATAL EXCEPTION: main > Process: com.example.user.project, PID: 10913 > android.os.NetworkOnMainThreadException > at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1147) > at...

PHP apache_request_headers does not work well

php,rest,httprequest
Hello may ask this why is it that on my code i cannot obtain the headers['Authorization'] when executing my code? coz meanwhile iv'e developed a REST API that can handle database to clients using php-json-mysql so when i use GET method together i also include my apikey into headers as...

Can requests be handled on a separate thread?

asp.net-mvc,multithreading,async-await,httprequest
In my ASP.NET MVC web application I'm consuming a web service that sometimes might take long to respond. In this case the user might want to cancel the request and be able to make other requests. But as the server is still busy processing the previous request, the user has...

NoSuchElementException in request

java,vector,httprequest,enumeration
After the first call to getHeaders(), the pointer stays at end of Enumeration en. Second time when getHeaders() is called, the and when while(en.hasMoreElements()) is checked, there are no elements and so empty vector is returned. public Enumeration<String> getHeaders(String Pname) { Vector<String> s = new Vector<String>(); Enumeration<String> en = getHttpServletRequest().getHeaders(Pname);...

Make httpheader Connection: Keep-Alive into lower-case “keep-alive”

c#,httprequest
What I tried it to add new header: request.Headers.GetType().InvokeMember("ChangeInternal", BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.InvokeMethod, Type.DefaultBinder, request.Headers, new object[] { "Connection", "keep-alive" } ); Actually it adds keep-alive header into Connection but it doesn't replace old one. So I get Connection: Keep-Alive,keep-alive. I tried experimenting with Reflection but didn't got anything...

Any benefit to loading a single image via background with CSS?

css,image,background-image,httprequest
Ok, obviously if you have a lot if icons you generally load them in via a background image so you can utilise sprites; however, I was just wondering if there is any advantage to loading them in via the background versus loading them via a img tag when it is...

Handle Special Characters in VBA on ms Access

access-vba,httprequest
I'm writing a VBA code to check for access for my Database: The code check if I have privilege to connect to a web server so it grants me access to the DB. Function WebVer(ByVal StrUserName As String, ByVal StrPassword As String) As String Dim Access As String Dim objHTTP...

How to set cookie?

f#,httprequest,f#-data
I have the following code, which uses http://fsharp.github.io/FSharp.Data/library/Http.html, to login a website and get some files. However, each page has a piece of jQuery script to set a cookie - $.cookie("Authenticated", 14313432);. My code has to mimic the jQuery script to set the cc too. Otherwise the authentication will fail....

HTTP Requests in C++ without external libraries? [closed]

c++,httprequest,c++14
So this question has been asked before, but the general answer pointed to was using an external library such as cURLpp. So I was curious as to if HTTP requests could be done using only the standard libraries as of C++14. How difficult would this be? Say for example, I...

Create a Class that Makes HTTPRequest in Swift

ios,oop,swift,httprequest,nsurlrequest
I am making an app that has the need to make HTTP Request in many of its ViewControllers. I ended up copy and pasting these codes in to each of the ViewControllers and listen to the delegates callback of NSURLConnectionDelegate and NSURLConnectionDataDelegate func makeRequest() { //Base64 var username = "testUsername";...

nodejs http request pending forever

node.js,httprequest
Im new to nodejs. Just trying to get a http.request function running. It should listen to the port 3523 on localhost. When people go to the url of http://127.0.0.1:3523/remote?url=www.google.com it should take the visitor to www.google.com This is the code: http.createServer(function (req, res) { res.writeHead(200, {'Content-Type': 'text/html'}); var urlinfo =...

Jmeter - How to send XML request to a server?

xml,web-services,jmeter,httprequest
I have a HTTP Request Sampler in my test plan. I have given my server name or IP, port and url. I chose the Body Data tab and gave an XML request in this way: <Request> <Header><Log><Level>None</Level></Log></Header> <Body> <Action> <GetService> <Code>ABC</Code> <CodeValue>XYZ</CodeValue> </GetService> </Action> </Body> </Request> However, this what I...

How to determine Content Type of a HTTP Servlet Request?

json,servlets,httprequest,content-type,http-request
How can I get the content type from the HttpServletRequest without reading the request body? When I use the following, I get null: request.getContentType() When I try to read the JSON data that comes in the request body using the following: StringBuilder jsonsb = new StringBuilder(); BufferedReader jsonbr = request.getReader();...

Why doesn't the timestamp parameter get passed along with the request?

jquery,html,ajax,floating-point,httprequest
With a request,four parameters need to passsed, out of which only 3 are getting passed. The parameter timestamp doesn't get passed. What could be the reason for this? $.ajax( { url : 'http://localhost:8081/Football/FeFeed', data : { playernumber : $('#playernumber_goal').val(), timestamp : $('#match').get(0).currrentTime, event : 'goal', team : 'team-name' }, type...

How to upload a file to an API

php,httprequest,image-uploading
Let's suppose I have a PHP server. I am creating an API for this server. I would expect to receive a request, where $_POST["FileContent"] would contain the file content and $_POST["FileName"] would contain the name of the file. My problem is that I have not done anything like that and...

set a parameter to request object

java,httprequest
I'm using someone else's code, which has a method I can call to logout from a site. Inside this method I have the following condition: if (request.getParameter("logout") != null) { //the rest of the code } The problem is: how do I set the parameter of the "request" object so...

What it takes to run stackoverflow? [closed]

httprequest,stack-overflow,bandwidth,diskspace
Not sure whether to ask these questions here, or on stack exchange, but please forgive me if I'm asking in the wrong section and let me know. I'll move this immediately if that's the case. I recently read Nick Craver's article on what it takes to run stackoverflow, and I...

How to measure request and response time of server?

android,json,httprequest,httpresponse
I am using asynctask and json parsing for getting response from server,How can i measure request and response time,following is code of my web service,can any one help me with this?............................ public class JSONParser { static InputStream is = null; static JSONObject jObj = null; static String json = "";...

Executing more than 1000 HTTP request tasks fails

c#,concurrency,task-parallel-library,httprequest,task
I'm trying to load test an API. I'm executing a tasks at the same time, each executing an HTTP request. I use Task.WhenAll(mytasks) for waiting for all tasks to be finished. The requests look as follows: using (var response = await client.SendAsync(request).ConfigureAwait(false)) { using (var jsonResponse = await response.Content.ReadAsStreamAsync().ConfigureAwait(false)) {...

HTTP multirange requests - headers in response

http,curl,httprequest
I'm using multirange http requests like this "curl --range 1-2,2-3 http://some.url" The response is like --00000000000000030705 Content-Type: text/html; charset=utf-8 Content-Range: bytes 1-2/13882393 il --00000000000000030705 Content-Type: text/html; charset=utf-8 Content-Range: bytes 2-3/13882393 le --00000000000000030705-- How can I remove fields Content-Type and Content-Range from response to get a raw data from server (without...

Parse Cloud httpRequest does not return a response

javascript,json,parse.com,httprequest,cloud-code
I am calling my Parse Cloud function from a js in my browser. I am doing merely as a test. I am trying to make a GET call to http://api.geonames.org . If I execute it in the browser as http://api.geonames.org/citiesJSON?north=44.1&south=-9.9&east=-22.4&west=55.2&lang=de&username=demo it does work. It returns: {"geonames":[{"fcodeName":"capital of a political entity","toponymName":"Mexico...

Android http request readline

java,android,httprequest,bufferedreader,readline
I was trying to readline through http request of the source code of the web page. My purpose was to read an integer value (price) from the result. I'm using bufferedReader to readline. I had no clear idea on which method could store the data I wanted. Below is the...

Error when trying to get image properties using HTTP reuest in parse

image,parse.com,httprequest
I get error 141 saying object has no method "success' using the following code. I simply need to get the image properties from the url. Attched is the full error from Corona SDK. Parse.Cloud.define("changePhoto4", function(request, response) { var Image = require("parse-image"); var baseurl = "http://files.parsetfss.com/7bdfab67-db97-4761-936f-be05679ca518/tfss-dc75c8e2-06b6-45fb-bfde-b2befb8ad84a-0.png"; var params = { }...

Get value of XML element from a HTTP Socket response

xml,sockets,cakephp,httprequest
I have a controller that sends requests using an HTTP Socket, and gives responses in xml format. I am using cakephp 2.6. Here is my code to get response body: $HttpSocket = new HttpSocket(); $response = $HttpSocket->request($request); $resulthit = $response->body; When I try to print the response body, it returns...

Jmeter - How to parameterize XML request body using a file in Jmeter?

xml,jmeter,httprequest,performance-testing
I have a XML request as follows: <Request> <Header><Log><Level>None</Level></Log></Header> <Body> <Action> <GetService> <Code>ABC</Code> <CodeValue>XYZ</CodeValue> </GetService> </Action> </Body> </Request> I would like to have a file which has data for two columns - Code and CodeValue. For example, Code|CodeValue -------------- ABC|XYZ DEF|MNO How should I parameterize my XML request body so...

Android URL connection java.io.FileNotFoundException

java,android,email,httprequest,bufferedreader
I try to send a normal Http Request to a WordlPress Website. This is the URL: "http://localhost.com/api/submit_comment/?post_id=12345&name=Max&[email protected]&content=hallo" If I open this with my Web-Browser all works fine. If I open it over this over an Android App it throws a java.io.FileNotFoundException. The Android Code: class SendComment extends AsyncTask<String, Void, String>...

GAE Python - Accessing values in Response object

python,api,httprequest,httpresponse
I'm getting response from an API where response.text looks as follows: { "message": "Queued. Thank you.", "id": "<[email protected]>" } I want to access the ID, for which I am using following code: response.text['id'] However this results in the following error: TypeError: string indices must be integers However if I take...

Sending data from Sails Service to a Controller

javascript,httprequest,sails.js
I'm writing a pretty basic HTTP request using SailsJS. I'm getting the data I want from the api that I'm calling, but I can't figure out how to pass it from my service back to the controller and eventually respond to the request with the data in the body. Here's...

How to forward a request to another URL with all request information (headers, ip etc.)?

javascript,node.js,express,httprequest,http-proxy
Please see below: My app receives request from the user. My app makes an API call to the 3rd party application using request module. In order 3rd party API to work properly it needs to receive USERS IP and header information. (It's an ad server). But when I send a...

Does IP address of a DNS changes over time?

http,dns,ip,httprequest,ipv4
I have a set of domain names and their IP addresses. When i send http requests to the domain names and IP addresses separately then I found discrepancy in the responses. The responded hosts are higher while sending http requests to the domain names than IP addresses. So, I was...

Set custom header in Dart's HttpRequest

dart,httprequest
I need to set a custom header in my HttpRequest in order to use encryption in an S3 bucket. The header which I want to set the header x-amz-server-side​-encryption​-customer-algorithm but I always get an SyntaxError: An invalid or illegal string was specified. 'x-amz-server-side​-encryption​-customer-algorithm' is not a valid HTTP header field...

How to remove session attribute on jspDestroy() method

jsp,session,httprequest,page-lifecycle
I want to remove session attribute when jsp page is destroyed. My problem is that I can not call request.getSession() on jspDestroy() method. Compilation error: public void jspDestroy() { request.getSession().removeAttribute("key"); } Error: request can not be resolved! Is there any way to remove session attribute after jsp page destroy?...

winCE C# HttpWebresponse timeout

c#,http,httprequest,windows-ce,httpresponse
I'm programming a Windows CE 6 device and want to make a request on a local Server! The device and the Server are in the same Wireless Network. The device tries to perform a getresquest() on the Server. public int test() { string var1 = "whatever"; req = (HttpWebRequest)WebRequest.create("http://192.168.x.x/test.php?var1=" +...

how to make a POST request using request.js that includes options

javascript,node.js,request,httprequest
I'm sure that this is a basic syntax question, but I am trying to hit an API that wants "a request" structured like: {"customer":{"firstName":"Regular","lastName":"Joe"}...} I also want to include some options, including query parameters, i.e.: options = { method: "POST" url: "https://api.rezdy.com/latest/bookings" qs: { apiKey: apiKey, } json: true }...

Sending HTTP POST requests using cpp-netlib

c++,httprequest,cpp-netlib
UPDATED I'm using cpp-netlib (v0.11.0) to send HTTP requests. The following code sends an HTTP POST request with the given body. client httpClient; try { uri::uri url; url << uri::scheme("http") << uri::host(m_hostname) << uri::port(m_port) << uri::path(m_path); // create a request instance and configure the headers client::request request(url); request << header("Connection",...

Getting a page content with Qt

c++,qt,httprequest,webpage,qnetworkaccessmanager
I am trying to get the content of a HTTP request into a QString variable with Qt and C++ QNetworkAccessManager networkManager; QUrl url("https://someurl.test.com/this-actually-exists"); QNetworkRequest request; request.setUrl(url); QNetworkReply* currentReply = networkManager.get(request); // GET QString reply = QTextCodec::codecForMib(1015)->toUnicode(currentReply->readAll()); Still, the variable reply seems to stay empty. Obviously, I misunderstand the documentation. How...

How/Where to store HTTP-Request URLs in Android?

android,httprequest,android-volley
I am not sure how/where I should store my Http-Request URLs and how to organize them. I am developing a server and a client for Android. On the client I am using Volley for the network communication which so far seems like a very useful tool. The only thing I...

HTTP POST REQUEST USING PHP [closed]

php,http,post,http-post,httprequest
I have captured a HTTP Post request using tamper data . I need to make a php file which repeates the request for 100 times. The POST data has HOST,USER AGENT,ACCEPT,ACCEPT_LANGUAGE,ACCEPT ENCODING,CONTENT TYPE,X-REQUESTED-With,REFERER,CONTENT LENGTH,COOKIE,DNT,CONNECTION,PRAGMA,CXACHE CONTROl and some POSTDATA . Help me make a php script

Play Framework 2.2.x and Angular: Redirect to mobile index page

angularjs,scala,httprequest,playframework-2.2
I'm working on an AngularJS project with the Play Framework 2.2. I'm supposed to develop a mobile version for the web application (not responsive, its part of a given uni project). For the desktop version I'm loading the index page with: def index(any: String) = Assets.at(path = "/public", file =...

Logging every request to a certain file

apache,logging,httprequest,server,request-headers
I want to log all request- (and maybe also response-) headers of requests, that are made to a certain file on an Apache server. I have tried a php script, but that only fires when I request it directly. Is there any way to log all the requests on a...

bad URI(is not URI?): {“message”:“d64”,“type”:“success”}

ruby-on-rails,api,httprequest,httpresponse,httparty
Am using httparty to send API request, I want to get output response after i sent request, url = HTTParty.post("https://example.com/api/sendhttp.php", :query => { :authkey => "authkeyvalue", :mobiles => mobileNos, :message => messages, :sender => "senderid", :route => "routeid", :response => 'json' }) response = HTTParty.get(url) puts response.body, response.code, response.message, response.headers.inspect...

Django: Handling several page parameters

python,django,list,parameters,httprequest
I have several possible parameter to process in a page. Assume x0, x1, x2,..., x1000. It seems awkward to get and process them one by one by request.GET.get('x0'), request.GET.get('x1'), ... Any idea to put them in a list, so that they can be processed in a loop....

How can a java program automatically follow redirection in 303 http status code response [duplicate]

java,httprequest,http-status-code-303
This question already has an answer here: Java - How to find the redirected url of a url? 4 answers I tried to access this url in my java program but I got this strange message instead of the page content as I was expecting. How can I avoid...

Why is this HTTP request not working on AWS Lambda?

node.js,amazon-web-services,httprequest,aws-lambda
I'm getting started with AWS Lambda and I'm trying to request an external service from my handler function. According to this answer, HTTP requests should work just fine, and I haven't found any documentation that says otherwise. (In fact, people have posted code that use the Twilio API to send...

How to get remote HTTP Port number in spring servlet?

java,spring,http,httprequest,port
I need to extract client's IP and port number when he makes a request to the servlet. Here's my controller code: @Controller public class IpCheckerController { String ip; @ResponseBody @RequestMapping(value = "/ipchecker", method = RequestMethod.GET) public String get(HttpServletRequest request, HttpServletResponse response) throws IOException { for (String header : HEADERS_TO_TRY) {...

how to calculate quality of http request served

linux,apache,shell,httprequest
I have a shell script that calculate the tps, average response time and quality of response time in percent. But I think quality response formula is not correct, please suggest how to calculate the quality of response time in terms of percentile of 95% percent. calculation () { echo "starting...

How to download a file in Android

android,httprequest
What i have: I have uploaded a .json file to the Dropbox of my account I have made it public What i am trying to do: I want to download the file to my RAW folder of my android project I am familiar with AsyncTask and HttpClient but what methodology(steps)...

HTTP GET request in Grails with urls

grails,httprequest,grails-controller
I've got a problem using a HTTP GET request in Grails with urls. My plan is to read saved params out of an url. Like there is a param called address with saved content. For example: http://mydomain.de/property?address=Alexanderplatz+3%2C+Berlin%2C+Deutschland=&submit=start . Here I commit my entered address into a url. There's another page,...