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
5 answers

How can I avoid making a new conection every five seconds?

Every five seconds a function : private boolean ping() { try { URL pingServerUrl = new URL(serverResourceLocator); HttpURLConnection connection = (HttpURLConnection) pingServerUrl.openConnection(); …
Suhail Gupta
  • 22,386
  • 64
  • 200
  • 328
0
votes
3 answers

Downloading images from url and save it in arraylist

In my app , i have an Arraylist of image urls and that has to be downloaded as bitmap and save in another Arraylist , so that i could set them as the map-markers in the mapview . My code is for( int i=0 ; i < Get_Feed_image.size() ; i++) { …
VIGNESH
  • 2,023
  • 8
  • 31
  • 46
0
votes
1 answer

java HTTPConnection connect to ip

I want to handle data from a website. I need to handle sessions, so I need to send cookies. But if my program waits longer than 60 seconds to request a new site, the DNS resolver will bring me a new ip so my program will connect to another server…
0
votes
1 answer

Restlet: persistent connection

I am trying to create a Restlet server that will handle long sessions with its clients. So after handling the first request i want to be able to keep the current http connection open and save it in a list of connections. Is this possible? I have…
tk66
  • 274
  • 7
  • 20
0
votes
0 answers

decompression of chunked compressed data

I need to download gzipped data chunkwise and append it to file. The problem is that when i read from the HTTP conn, it is not sending total compressed byte array at a single time(stream). my Application is looking for Gzip header in the left over…
shashankkb
  • 23
  • 6
0
votes
1 answer

Display HTTP Request Information - BlackBerry

How can I get the all HTTP request headers, method, the suffix of the connection, and all parameters that I added to the request?
mobileDeveloper
  • 894
  • 2
  • 14
  • 35
0
votes
1 answer

Reading URL content using Apache httpclient in Java 1.4

In Java 1.4, I am trying to make an connection to a URL, but since I want to configure a timeout, I am using Apache's httpclient instead of the old school URLConnection.openConnection(); So I have the following: HttpConnection conn = null; …
phychem
  • 25
  • 5
0
votes
1 answer

Stucked in Hitting a Website via HTTP Connection- Blackberry

Trying to hit a website but its not getting hit. I wrote the following code. package mypackage; import net.rim.device.api.ui.*; import net.rim.device.api.ui.component.*; import net.rim.device.api.ui.container.*; import…
Ahmad Shahwaiz
  • 1,432
  • 1
  • 17
  • 35
0
votes
1 answer

Send data to the server using for loop of HTTP POST in iPhone

I want send to the data on the server in batches. I have to send nsmutablestring data with 25 strings at a time then get response and if the response is success then again send the next batch. I am using HTTPConnection class.The code that I am using…
0
votes
3 answers

android app crashing when trying to convert inputstream to string

in the following code, i am trying to perform a GET operation on a webservice that i have coded and hosted on localhost. The method OpenHttpConnection is working just fine because i have put toasts in between to check if there was sth wrong in…
Salik
  • 508
  • 6
  • 17
  • 35
0
votes
1 answer

Android HTML connection failed because of website mobile version

I made a small application that download pictures from a website. But when I'm opening the HttpURLConnection with the right url, it's open the mobile version of this website. How can I open the real one please ? Thanks for your replies.
loulou8284
  • 15
  • 1
  • 8
0
votes
1 answer

Error in connecting localhost

I know this question has been asked for several times, but I am helpless now. I have a php webpage at localhost that echo "Hello". (working perfect at localhost). I have following code that displays response from localhost web page to TextView in…
Zeeshan
  • 741
  • 1
  • 7
  • 21
0
votes
1 answer

BlackBerry Connection issue : Cannot open any more tunnels

I get this error when i try to authenticate via OAuth, i am able to use the connection factory to access unauthenticated requests. It works fine on the simulator but doesnt work on the device. It worked once or twice on the device but fails…
Ajibola
  • 1,218
  • 16
  • 28
0
votes
3 answers

HTTPConnection to make DELETE request: 505 response

Frustratingly I'm needing to develop something on Python 2.6.4, and need to send a delete request to a server that seems to only support http 1.1. Here is my code: httpConnection =…
0
votes
1 answer

NetworkConnection on Main Thread and Validation

I am warned not to use network operations on main thread. But i have such a case; I need to check the value whether it is exist on the database or not, if yes i will proceed to another activity. But i am taking an exception. Pls help me to solve…
erdemgc
  • 1,701
  • 3
  • 23
  • 43