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

Android HTTP connection issues

I have an issue while trying to uddate a listview inside my app, the app connects to my apache server and obtains the data through json, is working great with the MainActivity but when trying to connect in another activity using an AsyncTask and…
Douglas Roos
  • 613
  • 10
  • 28
0
votes
0 answers

Post data from Android to PHP script on localhost

I am new to Android and trying to post data to localhost from my Android App. While it is not showing any errors, it's just displaying 0
0 in Android code. But in PHP code it's displayed "empty" My php code is:
0
votes
2 answers

How to use tweepy STREAMING API with a proxy?

I am aware there is a patch for using the REST API with a proxy and it works for me. But the Streaming API uses a HTTPConnection which cannot be emulated by urllib and urllib2 (as far as I know). Is there any fix for this? I tried using proxy with…
0
votes
3 answers

Android HttpURLConnection content length

I am trying to download files from a server in android and show progress dialog using code very similar to the answer provided in this thread but i am not able to get content length in HttpURLConnection's getContentLength() method. Content length…
Swapnil Luktuke
  • 10,385
  • 2
  • 35
  • 58
0
votes
2 answers

fatal exception main nullpointerexception how to fix it?

my android app is used to load a image from a link. It can run to show activity_main. But when i put link and load image. It crash. I was check it all many times. But i can't find bug. Anyone can help me? public class MainActivity extends Activity…
0
votes
0 answers

Purpose: Using Android HttpClient upload a file to tomcat server in doInBackground() of Async Task

Found couple of links here and there.. But none of them worked for me. Trying to achieve is the following : 1) I have a server specified in location server address (e.g : www.google.com:8080) 2) The server has a php script to handle the input. …
0
votes
1 answer

PDF is not getting download form url

I am very new with android and doing this first time. I am trying to download pdf form url in my app but its not getting downloaded. I really got messed up with this. I don't what i am missing ,why this is not working for me. Please help me to do…
user3154663
  • 291
  • 1
  • 2
  • 18
0
votes
2 answers

Android Errors after adding Scringo Library

after include Scringo library in my project, implementing the QuickStart instructions : private Scringo scringo; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); …
Muli Bachar
  • 33
  • 2
  • 7
0
votes
2 answers

Java HttpUrlConnection connection time out is not working due to connection refused

Hi I am working on Java application and deployed on Jboss,windows 8 server. In my server code i use HttpUrlconnection for communicating with my products. I would like to set a time limit for evey connection to connect with my product. So that i use…
Murali
  • 341
  • 2
  • 7
  • 24
0
votes
1 answer

How to reject all HTTP connections until a Tomcat webapp is fully started

I want Tomcat to reject (and close) all HTTP connections, while apps are not started up completely. By default Tomcat make connections wait during an app startup.
Mohsen
  • 3,512
  • 3
  • 38
  • 66
0
votes
1 answer

Why can`t I connect to Windows Azure VM running couchbase with public IP using java .. Getting Connection time out error?

I am trying to connect to my virtual machines in Azure cloud havng couchbase installed on it and all the ports as required by couchbase to be open. I am able to ping those machines. Suppose my machine on azure has ip 1.2.3.4:8091. This VM has 3…
ramu
  • 1,325
  • 2
  • 17
  • 25
0
votes
1 answer

DefaultHttpClient not working to request for Webservice

In one of my application there is webservice calling which is developed in PHP. And i have used the common method for requesting the webservice response which is in JSON format.The method parseJson() i have written is in CommonUtiliy file and this…
GrIsHu
  • 29,068
  • 10
  • 64
  • 102
0
votes
1 answer

CXF client: Reading content of sun.net.www.protocol.http.HttpURLConnection$HttpInputStream?

I have rest CXF client that have to download multipart body with a file. I have code like this: WebClient client = WebClient.create(adress); client.path(path); Response response = client.get(); InputStream recivedfile = (InputStream)…
M314
  • 925
  • 3
  • 13
  • 37
0
votes
2 answers

Android, i cant read any web page easily

I'm trying to connect any web page by the easiest way. I learnt that i have to use AsyncTask but i want before to see this job. package com.example.duzbaglanti; import java.io.BufferedInputStream; import java.io.InputStream; import…
fuatkaraca
  • 47
  • 8
0
votes
1 answer

Badlinestatus: | Python with http.client - Works for some sites but not others

import http.client import csv def http_get(url, path, headers): try: conn = http.client.HTTPConnection(url) print ('Connecting to ' + url) conn.request(url, path, headers=headers) resp = conn.getresponse() …
Mud
  • 84
  • 6