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

Blackberry HTTPConnection best practices

I am developing a project for BB. The application works with the network and sends / receives data via HTTP. Now I use the queue and queue manager. Manager starts with a background thread and works in while (true) loop, checking the queue for new…
Vlad Tsepelev
  • 2,056
  • 1
  • 21
  • 32
3
votes
1 answer

Go(lang): about MaxIdleConnsPerHost in the http client's transport

In case MaxIdleConnsPerHost is set to a high number, let's say 1000, the number of connections open will still depend on the other host, right? I mean, allowing 1000 idle connections with the same host will result in 1000 connections open as long as…
Daniele B
  • 19,801
  • 29
  • 115
  • 173
3
votes
0 answers

Posting Data using HttpURLConnection

I need to post data to server using HttpURLConnection. Data contains Thai character as well. Server which accept post request accept encoding UTF-8 and TIS-620 both. When I directly post data from rest client it works fine, but when I send same…
Arvind
  • 1,207
  • 6
  • 27
  • 55
3
votes
2 answers

Required but not granted http access to 216.34.181.97 slows phpmyadmin down

I use a recently freshly installed phpmyadmin 4.0.5 for the administration of databases on a server with a rather restrictive firewall. In the firewall logs I see that phpmyadmin tries to open an http connection to the address 216.34.181.97 - which…
ralph
  • 88
  • 6
3
votes
1 answer

Android Volley Library doen't return whole response data

Volley library doesn't return whole response data. It only return the part of the response data. I am calling drupal services. Below is my code for it. public void BoardRoomRequest() { pdialog = new ProgressDialog(BoardRoom.this); …
Megha
  • 631
  • 7
  • 11
3
votes
1 answer

Send JSONObject using HttpConnection POST with BlackBerry

I'm trying to do a blackbery application that can send a JSONObject through a HttpConnection POST request. The JSONObject is { "Contrasena" : "hy1tSPQc3K4IlSZLvd7U7g==", "Plataforma" : "A", "Usuario" : "user2323" } Anyone know how?
2
votes
1 answer

(HttpConnection) Connector.open(url) with touch phone

I am working on a J2ME application, it makes a HTTP request and works accordingly to the response received. Below is my code for HTTP request public String sendHttpGet(String url, String str) throws Exception { HttpConnection hcon = null; …
2
votes
1 answer

Real world problems with placing the HTTP Connection: Header at the end

Are there any known problems with putting the HTTP Connection: field at the end of the headers? From the Standard (RFC2616, section 4.2): it is "good practice" to send general-header fields first (which includes Connection), followed by…
unixman83
  • 9,421
  • 10
  • 68
  • 102
2
votes
1 answer

How to check GPRS Availability before sending Data through HttpConnection

I am making one Java ME Application. Here I am using HttpConnection for making Connection with webservices. I send/Receive data using HttpConnection, DataInputStream & DataOutputStream. But My Problem is that How can I check that currently GPRS…
Lucifer
  • 29,392
  • 25
  • 90
  • 143
2
votes
1 answer

HttpConnection with Proxy Server

I have Java ME Application that uses HttpConnection API, Here I am easily able to make connection with Proxyless server. But my Question is How can I Connect to any Live Server which uses Proxy Connection?. Do I need to specify Proxy IP & port into…
Lucifer
  • 29,392
  • 25
  • 90
  • 143
2
votes
2 answers

HttpsURLConnection strange behaviour on android2.2

I am trying to open a https connection in android. When i run the code below in android 3 or 1.6 everything works like a charm. But in android 2.2 sometimes it gives me -1 connection response. Android 2.2 : connection attemp gives -1 response code…
2
votes
1 answer

Getting 400 Bad Request while calling RestAPI in eclipse, but working in Postman

I have a function which takes 2 input - JSON filepath RestURL After calling the function, it should return the output as JSON. But the problem here, it is throwing 400 Bad request error. Below is the log of error which i am getting - Error Log…
2
votes
2 answers

HttpURLConnection executing two times

I am using HttpURLConnection to make a request to server and save some data in the Database, but when I make the request it executes two times which adds two identical rows in the database. Note: I am making the same request to the server from iOS…
Besart
  • 309
  • 1
  • 4
  • 22
2
votes
0 answers

Python http connection problems

Hi so I wrote the following code that's totally running fine, until sometimes it just decides to throw this error. That's what's really tripping me out, the fact that it works fine for the most part but then sometimes just decides to fail. A little…
2
votes
2 answers

J2ME, Nokia, HttpConnection

This code works fine on SonyEricsson and Motorola cellphones, but on Nokia it either fails at the beginnig not making any request at all or returns empty response, depending on model. HttpConnection hc = null; InputStream is = null; …
themylogin
  • 21
  • 2