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

HTTP connection in j2me

In my application i am trying to access 1 API which will return XML response.Now the problem is i am getting the response code from API ,but when i run the API straightly in web browser i am getting XML response.Whether the problem is in server side…
prakash .k
  • 635
  • 2
  • 12
  • 24
0
votes
1 answer

Share image on Google Plus without using intent

How can I share or upload a image on Google+ without using intents? I do not want to use ACTION_EVENT
0
votes
1 answer

Android Upload Response Message Not Expected

Here is my android code: try { FileInputStream fileInputStream = new FileInputStream(new File(pathToOurFile3) ); URL url = new URL(urlServer); connection = (HttpURLConnection) url.openConnection(); // Allow Inputs &…
jjLin
  • 3,281
  • 8
  • 32
  • 55
0
votes
2 answers

How to access Internet from within AndEngine - Android

It's a straightforward question, but one I haven't been able to figure out: How can I access the internet from an application that utilizes AndEngine (AnalogOnScreenControls). My Activity extends BaseGameActivity. Specifically, I want to open a URL…
0
votes
1 answer

Windows vs linux http authentication. javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated

When trying to make a http connection on my windows machine I get the following exception on httpclient.execute(httpGet, responseHandler); javax.net.ssl.SSLPeerUnverifiedException: peer not authenticate at…
ollo
  • 926
  • 1
  • 14
  • 33
0
votes
2 answers

Java class will not compile

I am getting a couple errors I cannot seem to fix... This is example code, so I'm confused what's going on. The error's are commented to the side of the lines where they show up. import java.io.DataInputStream; import…
GK1667
  • 1,362
  • 3
  • 14
  • 22
0
votes
1 answer

why don't i see a new jsp page when i click the fire button in the applet?

I am trying to communicate with a servlet and jsp via an applet. When the button in the applet is clicked request is fired to the servlet and then i try to forward from that servlet to a jsp page. Though the request is made successfully to the…
Suhail Gupta
  • 22,386
  • 64
  • 200
  • 328
0
votes
2 answers

Unable to load image from url

I cannot load the image from url and play into my listfield ImageLoader class public class Util_ImageLoader { public static Bitmap getImageFromUrl(String url) { Bitmap bitmap = null; try { String bitmapData =…
Alan Lai
  • 1,094
  • 7
  • 18
  • 41
0
votes
3 answers

BlackBerry - Downloaded images are corrupted on wifi with HttpConnection

In my app I need to download several images from a server. I use this code to get a byte array : HttpConnection connection = null; InputStream inputStream = null; byte[] data = null; try { //connection =…
Stephane Mathis
  • 6,542
  • 6
  • 43
  • 69
0
votes
1 answer

Bad request when connecting to ASP.NET page on IIS from android application

I have a ASP.NET website deployed to IIS with a couple of ashx that returns JSONs to be consumed by an Android application. I have implemented an authentication logic using Basic Authentication. The problem: When accessed from Android, the server…
Johan
  • 780
  • 7
  • 22
0
votes
4 answers

How to write to a text file - HttpConnection J2ME

I get no errors but my code is not saving any new data to the text file, here is my code: public void saveToLeaderboard() throws IOException { String toSave = "Random info I want to save"; HttpConnection connection = null; …
Marc Uberstein
  • 12,501
  • 3
  • 44
  • 72
0
votes
2 answers

Get suffix string for BlackBerry connection on 4.6.1?

I'm trying to develop an application which uses HttpRequest for requesting a web page. The problem is that I still can't find the right way to get the suffix in the connection string for OS 4.6.1. Thanks.
0
votes
2 answers

Get html and headers from single request using Python

I'm investigating the possibility of making a single http request using python to retrieve both the html as well as http headers info instead of having to make 2 seperate calls. Anyone know of any good ways? Also what is the performance differences…
AO_
  • 2,573
  • 3
  • 30
  • 31
0
votes
1 answer

Blackberry ConnectionDescriptor null for mobile network

I need to establish an HTTP connection on my blackberry device. The following is my code :: ConnectionFactory connFact = new ConnectionFactory(); ConnectionDescriptor connDesc; connDesc = connFact.getConnection(getUrl); This code works fine when…
Hades
  • 75
  • 1
  • 12
0
votes
0 answers

Blackberry Bold 9000 Internet Connection works fine and then breaks

I've read a lot posts on the web, but I haven't found solution. I've developed a BlackBerry App ( SDK 5 ) that's using HttpConnection to get/set data from server. I tried to connect via Wireless and G2/G3 connection. In both cases Application works…