URLConnection is a class that enables Java code to access data available from various urls.
0
votes
1answer
6 views
Android's HttpURLConnection throws EOFException on HEAD requests
This small code snippet runs fine on my Mac's JVM. Unfortunately it crashes when executed on Android 4.2.
import java.net.HttpURLConnection;
import java.net.URL;
public class App
{
public static ...
0
votes
0answers
19 views
UrlConection not getting JSON response
Hello all i am trying to open one URL using thread in activity on button click. i prepare one thread in onClick method. i wrote code. it is working but in response i am not getting response properly. ...
0
votes
1answer
17 views
Clojure Agent Parellel HTTP IllegalStateException and await-for
I am working through the example of making parallel http requests in Clojure,
http://lethain.com/a-couple-of-clojure-agent-examples/
In particular
(ns parallel-fetch
(:import [java.io InputStream ...
0
votes
2answers
35 views
download multiple files keeps stopping android
Trying to download about 38 video files from a server with the code below and for some reason it keeps stopping at different points during the download, I'm mostly getting a
java.net.SocketException: ...
0
votes
0answers
16 views
Custom JavaFX WebView Protocol Handler
I am trying to write my own protocol handler for a JavaFX application that uses webview to access a single website. What I have done so far
My custom URLStreamHandlerFactory
public class ...
0
votes
0answers
7 views
No URLFile Size returned by GSM in some providers
I am having this strange behavior. I try to retrieve the size of the file to be downloaded with the following code:
URL url = new URL(urlString);
URLConnection connection = ...
0
votes
0answers
20 views
uploading files with urlconnection
hello all i am developing a android application and i am trying to upload a file to my ftp server with Url Connection the connection is successful but it does not upload the file to my server and the ...
0
votes
2answers
33 views
urlconnection not uploading file to ftp server
hello all i am developing an android app that has an functionality of uploading files to ftp server i want my app to upload an Html file to ftp server i am using this code---
please answere. Thanx ...
0
votes
2answers
43 views
URLConnection empty stream
URLConnection Stream is Empty
I'm working with Xamarin Studio 4.0.9 and use this code:
Stream lResult = null;
URLConnection lConn = new URL(url).OpenConnection();
lResult = lConn.InputStream;
...
0
votes
0answers
24 views
i want to write in a public file ( url ) with http methods
i try to write in a file , which is a share file with url , with the help of URLConnection Class and mostly with the OutputStream of connection. So i write my new bodytext for the file and i put it on ...
0
votes
2answers
30 views
Resizing photos becomes slower, maybe because i am not closing stream all streams?
so i am trying to resize image that I download using this method, however, after resizing about 100 images, the program becomes super slow. I think its because I forgot to close a connection or ...
-2
votes
1answer
54 views
URLConnection on android [duplicate]
I'm trying to take the first image of a google search programmatically, to put it into my android application. i've found an example that was made for me(here: ...
1
vote
2answers
28 views
Storing Data on and accessing data from a website
This is a total noob question. Sorry in advance if it is vague, but I'm looking for advice on how to start out. I have an app that I've developed that interacts with a local sqlite3 database. ...
0
votes
1answer
44 views
Java HTTP Request Fail
I'm doing one java query with http on some search engines and here is the code of two classes:
public EventSearch(){
btsearch.addActionListener(this);
}
public void ...
1
vote
1answer
42 views
HTTP Request passing Keywords to search
I made some research to solve my problem but sadly until now I couldn't. It's not such a big deal but I've stuck on it..
I need to make a search with some keywords in search engines such as google. I ...