Questions tagged [httpconnection]

The generic concept of a HTTP connection. May also refer to a concrete HTTPConnection in a specific library, especially the Android HttpConnection

The generic concept of a HTTP connection. May also refer to a concrete HTTPConnection in a specific library, especially the Android HttpConnection.

538 questions
0
votes
1 answer

How i can achieve http connection pooling in JAVA

I need to achieve HTTP connection pooling using multithread environment. I am using below mentioned code. The mentioned serviceURL takes approx 1-3 sec to respond, however i am getting approx 30-50 hits per/second from client. I need to hit single…
Vishnu
  • 3,899
  • 2
  • 18
  • 19
0
votes
1 answer

Application working on OS 5.0, not in 7.0

I made a program using OS 5.0. It works fine on emulator of a 8520 curve, and also in the device. Now I'm trying to use this application on a 9900, with 7.0 version, and it stacks doing an HttpConnection in the device. Using my program 5.0 version,…
Maximiliano Poggio
  • 1,162
  • 10
  • 23
0
votes
1 answer

Blackberry httpConnection cant handle error 200

I cant get my error message. When the connection is OK, i can see the message "Connection OK". But when i want to connect to a "bad" ip server, i cant see the message "Bad Connection". Why is this? I waited until 2 minutes (i read connection has 2…
Maximiliano Poggio
  • 1,162
  • 10
  • 23
0
votes
0 answers

Stop httpConnection blackberry after time

i have a problem. I want to stop an httpconnection after x seconds, how can i do that? I thought something like a timertask that executes a httpconnection.close() after x seconds or something like that. Here is my code where i use my…
Maximiliano Poggio
  • 1,162
  • 10
  • 23
0
votes
0 answers

BlackBerry HttpConnection Cookies

Another BlackBerry httpconnection problem. I'm writing an app that gets a cookie and then uses it for auth purposes using REST via a HttpConnection. This works perfectly via Eclipse and device emulators however it fails on the device itself. The…
delfi
  • 33
  • 8
0
votes
0 answers

Default acceptance headers on HttpConnection, involves some risk?

I wonder if there is some risk in leaving the HttpConnection object in a connection with the acceptance mime types by default. That's it according to RFC2616 to not set any header. Does that suppose any risk or future problem?
Dayerman
  • 3,973
  • 6
  • 38
  • 54
-1
votes
1 answer

HttpURLConnection properties order

I need request to have a particular headers order. So I call setRequestProperty for each property in required order: URL url = new URL(urlString); HttpURLConnection request = (HttpURLConnection) url.openConnection(); …
-1
votes
1 answer

Exception in thread "main" java.io.IOException: Server returned HTTP response code: 405

ULR url = new URL(urlString); HttpURLConnection con = (HttpURLConnection) url.openConnection(); con.setRequestMethod("GET"); con.connect(); BufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream())); String…
-1
votes
1 answer

UnicodeEncodeError: 'ascii' codec can't encode character '\u200b' in position 12: ordinal not in range(128) even though add u before every string

My urllib code are below: #-*- coding:utf-8 -*- import http.client import urllib.parse host = u"​www.cloudflare.com" url = u"%s:80" % host conn = http.client.HTTPConnection(url) method = u"GET" request_url = u"https://%s" % host headers = { …
user7693832
  • 6,119
  • 19
  • 63
  • 114
-1
votes
1 answer

HTTP connection pool utilization check

In my spring-boot 2.1 app I have set up PoolingHttpClientConnectionManager with 100 connections max. Is there a way to know how many HTTP connections are utilized in HTTP connection pool?
htshame
  • 6,599
  • 5
  • 36
  • 56
-1
votes
2 answers

Is there any way to find out how many http connections are open while browsing a web page

Like when I access yahoo email , I see yahoo downloads contents from various other servers , like ad.yieldmanager.com , img.yahoo.com ,etc ,when I am in a web page how do I find out all the http connections it has opened to load the web page ?
liveperson
  • 29
  • 1
  • 2
  • 3
-1
votes
1 answer

Parsing Data from url using HttpURLConnection android

I am working on Url parsing where I am getting a response by using HttpURLConnection as {"USD_PKR":115.599998}. From my response I want to get value as 115.599998 by parsing above extracted data. My code is given below, kindly guide me to get my…
Usman Khan
  • 3,739
  • 6
  • 41
  • 89
-1
votes
1 answer

Cannot resolve symbol execute, android

I am trying to set up my app to communicate with a server so I can perform profile crud. I set up a fab that when clicked will create a JSONObject and post that data to the server, all the code seems to be fine, but on "new…
k3j123
  • 13
  • 6
-1
votes
2 answers

How can I know the content of a cookie with Java?

Maybe this is a simple question or maybe a tough one I don't really know... I have a session opened in a web that requires a login. What I want to get is the content of the session cookie that has been generated and that my browser (Firefox in this…
a.ras2002
  • 385
  • 2
  • 7
  • 21
-1
votes
2 answers

How to get last modified date from apk file on server

im trying to get the last-modified date from an apk file on my server, the problem as soon as i try to get the header it fails somehow. i can download the file fine with try { HttpURLConnection.setFollowRedirects(false); …
Sonny Hansen
  • 620
  • 1
  • 5
  • 18
1 2 3
35
36