Skip to main content
-1 votes
1 answer
91 views

I am trying to create a program that fetches data from a url. When I try to debug it with VS code it outputs nothing. Even if I put "System.out.print("Something");" after the catch ...
granitemode's user avatar
0 votes
0 answers
58 views

I am working on custom gradle plugin which trigger API POST call. There is no many option for networking from gradle and UrlConnection looks as a best tool. I am able to trigger GET API call, but can ...
Gleichmut's user avatar
  • 7,109
0 votes
0 answers
30 views

The following classes are running as threads, invoked from a fairly empty Android application (i.e., the app is really only being used to spawn the threads and then post a message to URLSender). The ...
SoCal's user avatar
  • 851
0 votes
1 answer
750 views

So, I'm having the following issue: there is no suitable driver found for jdbc://C:/Users/Billy Bob Jones/Documents/My20Y1P2023.accdb . I am using spaces in my name. So, the error I am getting is: ...
Sid Meka's user avatar
1 vote
2 answers
835 views

In order to send a string data to the server once, I do as below: Make “HttpURLConnection” to my URL address and open it Set the required headers for the connection I Set setDoOutput to True new a ...
masoudseddighi's user avatar
0 votes
0 answers
42 views

I'm trying to get a JSON from moodle. My request is working from a browser bar and also with curl, but not from java. Here's a small piece of code that shows the issue. public static void main(String[]...
carles's user avatar
  • 174
1 vote
1 answer
2k views

I have been using URLConnection.guessContentTypeFromName(String fname) to detect what mime type I need to use in my headers to return different documents. It was working fine until I tested with fname ...
Philippe B.'s user avatar
0 votes
1 answer
2k views

Below shows the relevant code segments. Is it related to connection close or Buffer memory.? (The file, which contains 50MB+ AND 65000+ Text Lines) @Scheduled(cron = "0 0 9 * * *") public ...
Karan Sindhu's user avatar
-1 votes
1 answer
1k views

What will be the output of the following Java program? import java.net.*; class networking { public static void main(String[] args) throws Exception { URL obj = ...
Swapnil Raj's user avatar
0 votes
0 answers
112 views

How to add parameter to my object of type URLConnection? I have tried addRequestProperty("access_key,"dsd97sd863hb8323hjhd933ok4") and setRequestProperty("access_key,"...
johnnycode's user avatar
1 vote
1 answer
409 views

I am trying to develop an instagram scraper; this is my code: try { System.out.println("search in https://instagram.com/" + txtUsername.getText() + &...
Conta's user avatar
  • 184
0 votes
1 answer
76 views

I send http head request with URLConnection and got header value Content-Disposition Unreadable value like bellow. Content-Disposition: attachment; filename="৩টি ধাপে সহজেই...
Abhijit's user avatar
  • 83
1 vote
1 answer
293 views

Thanks in advance for every input! I'm getting a little familiar with how to read data from websites with Java and have tried to do this by reading data using a URLConnectionReader. Unfortunately I ...
cheese steak jimmy's's user avatar
0 votes
2 answers
1k views

I am downloading html source code of this webpage https://tv.zam.it/ch-Rai-1 using this: String content= ""; URLConnection connection = null; try { URL url = new URL(...
kekk0's user avatar
  • 57
1 vote
1 answer
1k views

I am trying to mock a method which is opening a connection using URLConnection class and then getting stream input. I want to mock the URLConnection class efficiently but am not able to do so. Below ...
Gregory Javis's user avatar

15 30 50 per page
1
2 3 4 5
45