1
vote
1answer
20 views

HttpClient VS Jsoup : Http package header look the same but not the response is difference?

As following image capture from Wireshark, the left side is package create from Jsoup by this code. Connection.Response response = Jsoup.connect("http://pantip.com/login/authentication") ...
0
votes
0answers
27 views

Java - File parsing vs fetching html over http

We have a Java class that is supposed to fetch an HTML file and then read some content in it based on the id of certain divs and then return the content to a frontend which will then render it. Now ...
0
votes
1answer
27 views

Android : Http request : get response time

In ANDROID, is there any way to get the reponse time from an http request (Using httpClient for instance) Am looking for an alternative to what Curl does.
2
votes
1answer
26 views

Async read methods in System.Net.Http.HttpContent missing CancellationToken overload

public async Task<Request> GetRequestAsync() { var response = await _httpClient.GetAsync(_requestUri, _cancellationToken); return await response.Content.ReadAsAsync<Request>(); } ...
1
vote
2answers
84 views

Sending XML payloads with HTTP POST request using HttpClient--Java

So I've been doing a lot of looking on both stackoverflow and google in general to try and answer my following question, but I have been unable to find anything that can help me to get this work 100%. ...
0
votes
0answers
16 views

how i write to a file with http methods?

hi i am new in web programming , and i want to ask something about http methods. i have published a file to my dropbox page ( share file ) and after i wrote a programm in java , which read the file ...
0
votes
1answer
83 views

Cannot achieve HTTP caching in android

I have been trying to use OkHttp and Retrofit to cache http requests. But I dont seem to figure why it isnt working. @Headers("Cache-Control: public, max-age=640000, s-maxage=640000 , ...
0
votes
1answer
59 views

How to send a JSON string with an HTTP request using in Java using HTTPClient

This is my first question. I love stackOverflow but I've always been a reader, not a writer. Now here goes nothing: So I've seen a LOT of different questions like this, believe me, I looked... but ...
0
votes
0answers
40 views

Using Apache HTTP Components (client) and the examples given just won't work

I have tried using the quick given example of: HttpClient httpclient = new DefaultHttpClient(); HttpGet httpget = new HttpGet("http://localhost/"); HttpResponse response = ...
0
votes
0answers
7 views

ERROR [RequestTargetAuthentication:112]

I´m trying to connect a liferay portlet with exchange via webdav but when I send the request the server returns this 15:41:06,239 ERROR [RequestTargetAuthentication:112] Authentication error: ...
1
vote
1answer
28 views

HttpClient parameters not being added to the executing method

Sorry that it's potentially an easy answer but I can't find anything. I currently have the method: public MediaSource getConvertedMediaServletCall(String format) throws HttpException, ...
0
votes
1answer
35 views

Flaw in checking HTTP 500 error HttpUrlConnection Java

My issue is with status != 200 , when I run this script (3) different times, it'll print out the value for if{} (1) times, the else{} (1) time, and the catch{} another. I am simply trying to just ...
0
votes
0answers
41 views

HttpClient Connection Issue

I am trying to connect the webpage through the code using Java.net Lib but i am not able to connect because company proxy setting. I saw httpclient example code here but no luck. executing ...
-4
votes
1answer
70 views

How to programmatically in Java check a proxy server [closed]

How to programmatically in Java check whether a proxy server is alive or works and can be used and not blocked in google ? Not blocked in google I mean I can use this proxy in order to access google ...
0
votes
0answers
21 views

HTTP Digest Authetnication issue

People, I have this issue bothering me since this week. I am implmenting a http client, and am adding the support for digest authentication. Testing scenario is simple: MS IIS 7.5 server, IE browser ...

1 2 3 4 5 11
15 30 50 per page