On 25 of November 2010 16:38:59 Oleg Kalnichevski wrote:
On Thu, 2010-11-25 at 06:37 +0200, John Smith wrote:
I would like a process indicator, not final total.
So, what is the problem? Just count the number of bytes read so far
while reading from InputStream returned by HttpEntity
Hello everyone!
I describe my situation.
I download some content from some sites by HttpClient.
I send GET request and get HttpEntity to byte array:
bEntity = EntityUtils.toByteArray(entity);
then I save bEntity in file.
I can see content size by entity.getContentLength(),
but I need to know
On 24 of November 2010 23:09:30 Oleg Kalnichevski wrote:
On Wed, 2010-11-24 at 14:59 +0200, John Smith wrote:
Do you want just the final total or you intermediate data for a process
indicator of some kind?
Oleg
On Mon, Oct 25, 2010 at 11:51 AM, Oleg Kalnichevski ol...@apache.org wrote:
One can set the 'http.protocol.element-charset' parameter to make
HttpClient use a specific charset for protocol elements
http://hc.apache.org/httpcomponents-client-ga/tutorial/html/fundamentals.html#d4e337
Oleg
Hi
I'm receiving an utf-8 encoded redirect url's from a website, but it
seems that httpclient (?) treat them as US-ASCII (?) so it can not
handle them correctly.
Is there any way to correct this behavior? Or is there any way to
convert incorrectly encoded string back to correct one (to be used
On Sat, Oct 23, 2010 at 1:34 AM, Oleg Kalnichevski ol...@apache.org wrote:
On Sat, 2010-10-23 at 01:24 +0330, John Smith wrote:
Hi
I'm receiving an utf-8 encoded redirect url's from a website, but it
seems that httpclient (?) treat them as US-ASCII (?) so it can not
handle them correctly
I couldn't understand why I can't use backslash (%5C) symbol in URL?
I've created file \mytest.php in my Linux box and sent request in
Firefox http://localhost/\mytest.php
and everything worked fine.
But when I try use HttpClient I get this error
java.net.URISyntaxException: Illegal character in
You can something lika that:
byte[] params = yourParamsString.getBytes();
postEntityParams = new ByteArrayEntity(params);
On Thu, Jun 24, 2010 at 11:48 PM, Kumar Mettu mksre...@yahoo.com wrote:
Hi,
I am using Apache HTTP client POST method.
When sending parameters to server in the post
. Can you explain?
Kumar.
From: John Smith deaf@gmail.com
To: HttpClient User Discussion httpclient-users@hc.apache.org
Sent: Thursday, June 24, 2010 14:59:46
Subject: Re: Preventing parameters from being encoded
You can something lika that:
byte
On Thu, May 6, 2010 at 1:26 AM, Jeff Davis j...@flyingdiamond.com wrote:
sebb wrote:
Perfect advice, the only thing I have to add is that Wireshark isn't much
help for https - if you can also log in on http then that will work great.
In Wireshark : Show the capture options - Capture filter
Last example throw exception. I looked through PlainSocketFactory
source and mixed it with your example. See below:
public class Main {
public static void main(String[] args) throws Exception {
HttpParams params = new BasicHttpParams();
HttpProtocolParams.setVersion(params,
I use HttpClient in my http debugger project.
And I need send parameters without any conversion.
I found a way for POST method, but I couldn't found that functionality
for GET method.
When I try to send something like that GET http://localhost/?e...@%;
I get exception. Of course I realized that
On Wed, Apr 21, 2010 at 9:43 AM, Christophe Marchand
christophe.march...@axyus.com wrote:
URLEncoder.encodeUrl(...) ???
Regards,
Christophe
No, no. I know that and use.
When I use that I'll transform request from
GET http://localhost/?e...@%
to
GET http://localhost/?er%24%25%40%25
It's
Transparent connections through SOCKS proxies (version 4 5) using
native Java socket support
Please look at this - http://hc.apache.org/httpclient-3.x/features.html
You should use something lake that -
System.setProperty(socksProxySet, false);
System.setProperty(socksProxyHost, localhost);
14 matches
Mail list logo