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
-1
votes
2 answers

Read InputStream from file via URL query string

Is it possible to use the java URL.openStream() method to read the file into an input stream when the URL is a query string rather than a direct link to a file? E.g. the code I have is: URL myURL = new…
jdie8274j
  • 155
  • 1
  • 10
-1
votes
1 answer

I use telnet to connect one specific domain name on port 80. it works on personal Ubuntu but not work on Amazon EC2 instance. DNS issue?

I have a Amazon EC2 instance running Ubuntu and a local personal Ubuntu computer. I use the default VPC configuration for my EC2 instance and didn't block any internet traffic from the firewall. I can telnet Google.com 80 and Ping Google.com on my…
Jack Wang
  • 77
  • 1
  • 7
-1
votes
1 answer

Upload image to server using blackberry http connection

Hi below is simple code to upload file to server its works fine... but when i send image to server via blackberry it does some work but there is no image file in server please guide me where i am making mistake...
-1
votes
1 answer

Blackberry - HttpConnection using EDGE net

I want to do an httpconnection for a blackberry application. Im using url like http://ip:port/prueba.php;deviceside=true If i want to use it into the device by wifi, i add interface=wifi. But i dont know why it doesn't connect via EDGE. is there…
Maximiliano Poggio
  • 1,162
  • 10
  • 23
-2
votes
2 answers

Is there a Java library to parse the XML string but only the required element and ignore the rest? (time optimization)

we have a very long XMLResponse from one web service, and we want to optimize the time of parsing this XMLResponse, so the strategy is to parse the XMLResponse line by line until we have what we need from the XMLResponse => the mandatory elements we…
chay
  • 1
-2
votes
1 answer

Connection string open but doesn't proceed

I am trying to convert the connection string to buffer input stream and then to string so that I can change it to json format but while debugging the program doesn't proceed after in = new BufferedInputStream(conn.getInputStream()); and directly…
-2
votes
2 answers

Connection to IP is refused when trying to connect from android application

I am trying to connect my android app with server which is running in same PC,ip is 192.168.1.129,and tomcat port is 8081,getting below issue,Can any one help me to resolve this? 10-07 15:51:45.672 29710-5937/com.net.app W/System.err:…
kavie
  • 2,154
  • 4
  • 28
  • 53
-2
votes
1 answer

failed to connect to http Android

when the connection is so low i get an exception " failed to connect to : http ......", this is my code, can any one please helps me to avoid the exception. when the connection is so low i get an exception " failed to connect to…
fayza
  • 135
  • 1
  • 3
  • 13
-2
votes
2 answers

Error in HttpResponse/httpClient.execute

I am new to Android and new to Stackoverflow! I am just creating dummy app to learn http connection. while compiling i encountered an error in this line HttpResponse getbackdata= http_client.execute(url_data); I even searched in stackoverflow…
Rafique Mohammed
  • 3,666
  • 2
  • 38
  • 43
-2
votes
1 answer

Blackberry Send & Receive Data Via Post Method

Sending Data on server via POST Method. And receiving the JSON Response. Blackberry - Answered. Happy Coding
Ahmad Shahwaiz
  • 1,432
  • 1
  • 17
  • 35
-3
votes
2 answers

How to make multiple request in one HTTPconnection?

I have a server which I have to do login first (first URL), then I will send another POST request (second URL), but this post request can only be done if I am still logged on. How can do the POST request using URL 2 still being logged? Here is the…
user2413711
  • 85
  • 2
  • 12
-5
votes
1 answer

Continuous sending location to server.. good or bad?

I am developing one tracking application where a user can track other users location continuously and show it in map.For continuous location updates i am using FusedLocationApi and getting location updates correctly. My question is to send these…
-6
votes
1 answer

How to check Internet Connection in Java ME?

I am developing a Java ME Application. Here I am doing HttpConnection as follows, HttpConnection httpConnection = (HttpConnection) Connector.open( url.trim() ); Variable url is an valid url. Sometimes because of unavailability of GPRS Connection,…
Lucifer
  • 29,392
  • 25
  • 90
  • 143
1 2 3
35
36