Discussion:
httpCore5 - ClassicGetExecutionExample
Tommy Pham
2018-08-08 07:14:19 UTC
Permalink
Hello everyone,

I was trying to roll my own web crawler based upon the HTTP Components v5.x
for my edification. I was reviewing the ClassicGetExecutionExample:

https://hc.apache.org/httpcomponents-core-5.0.x/httpcore5/examples/org/apache/hc/core5/http/examples/ClassicGetExecutionExample.java

and along with the source code for each class and/or interface utilized.
I'm at loss of the SocketConfig. I see it instantiated and configured to
have a socket timeout of 5 seconds but I don't see it utilized anywhere
within the example. Did I misinterpret something?

TIA,
Tommy
Oleg Kalnichevski
2018-08-08 09:53:55 UTC
Permalink
Post by Tommy Pham
Hello everyone,
I was trying to roll my own web crawler based upon the HTTP
Components v5.x
https://hc.apache.org/httpcomponents-core-5.0.x/httpcore5/examples/or
g/apache/hc/core5/http/examples/ClassicGetExecutionExample.java
and along with the source code for each class and/or interface
utilized.
I'm at loss of the SocketConfig.  I see it instantiated and
configured to
have a socket timeout of 5 seconds but I don't see it utilized
anywhere
within the example.  Did I misinterpret something?
TIA,
Tommy
Hi Tommy

I fixed the example a few days back.

Please take another look.

Cheers

Oleg

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-***@hc.apache.org
For additional commands, e-mail: httpclient-users-***@hc.apache.org
Tommy Pham
2018-08-08 16:59:40 UTC
Permalink
Hi Oleg,

Thank you for the prompt feedback. I've checked again on the linked
provided earlier and still the same. I've also check the svn (Revision
1837658):

http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/httpcore5/src/examples/org/apache/hc/core5/http/examples/ClassicGetExecutionExample.java

as seen in the attached pictures (if the attachments are allowed).

Thank you,
Tommy
Post by Oleg Kalnichevski
Post by Tommy Pham
Hello everyone,
I was trying to roll my own web crawler based upon the HTTP
Components v5.x
https://hc.apache.org/httpcomponents-core-5.0.x/httpcore5/examples/or
g/apache/hc/core5/http/examples/ClassicGetExecutionExample.java
and along with the source code for each class and/or interface utilized.
I'm at loss of the SocketConfig. I see it instantiated and
configured to
have a socket timeout of 5 seconds but I don't see it utilized anywhere
within the example. Did I misinterpret something?
TIA,
Tommy
Hi Tommy
I fixed the example a few days back.
Please take another look.
Cheers
Oleg
---------------------------------------------------------------------
Oleg Kalnichevski
2018-08-08 17:47:20 UTC
Permalink
Post by Tommy Pham
Hi Oleg,
Thank you for the prompt feedback.  I've checked again on the linked
provided earlier and still the same.  I've also check the svn
http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/httpcor
e5/src/examples/org/apache/hc/core5/http/examples/ClassicGetExecution
Example.java
as seen in the attached pictures (if the attachments are allowed).
Thank you,
Tommy
Long moved to Git ;)

https://github.com/apache/httpcomponents-core/blob/master/httpcore5/src/examples/org/apache/hc/core5/http/examples/ClassicGetExecutionExample.java

Oleg
Post by Tommy Pham
Post by Oleg Kalnichevski
Post by Tommy Pham
Hello everyone,
 
I was trying to roll my own web crawler based upon the HTTP Components v5.x
for my edification.  I was reviewing the
 
https://hc.apache.org/httpcomponents-core-5.0.x/httpcore5/example
s/or
Post by Tommy Pham
g/apache/hc/core5/http/examples/ClassicGetExecutionExample.java
 
and along with the source code for each class and/or interface utilized.
I'm at loss of the SocketConfig.  I see it instantiated and
configured to
have a socket timeout of 5 seconds but I don't see it utilized anywhere
within the example.  Did I misinterpret something?
 
TIA,
Tommy
Hi Tommy
I fixed the example a few days back.
Please take another look.
Cheers
Oleg
-----------------------------------------------------------------
----
g
---------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-***@hc.apache.org
For additional commands, e-mail: httpclient-users-***@hc.apache.org
Tommy Pham
2018-08-08 20:36:41 UTC
Permalink
Ah. I forgot about Apache migrating to Git a while back. I wasn't sure if
all the projects are migrated. Thank you, again.
Post by Oleg Kalnichevski
Post by Tommy Pham
Hi Oleg,
Thank you for the prompt feedback. I've checked again on the linked
provided earlier and still the same. I've also check the svn
http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/httpcor
e5/src/examples/org/apache/hc/core5/http/examples/ClassicGetExecution
Example.java
as seen in the attached pictures (if the attachments are allowed).
Thank you,
Tommy
Long moved to Git ;)
https://github.com/apache/httpcomponents-core/blob/master/httpcore5/src/examples/org/apache/hc/core5/http/examples/ClassicGetExecutionExample.java
Oleg
Post by Tommy Pham
Post by Oleg Kalnichevski
Post by Tommy Pham
Hello everyone,
I was trying to roll my own web crawler based upon the HTTP Components v5.x
for my edification. I was reviewing the
https://hc.apache.org/httpcomponents-core-5.0.x/httpcore5/example
s/or
Post by Tommy Pham
g/apache/hc/core5/http/examples/ClassicGetExecutionExample.java
and along with the source code for each class and/or interface utilized.
I'm at loss of the SocketConfig. I see it instantiated and configured to
have a socket timeout of 5 seconds but I don't see it utilized anywhere
within the example. Did I misinterpret something?
TIA,
Tommy
Hi Tommy
I fixed the example a few days back.
Please take another look.
Cheers
Oleg
-----------------------------------------------------------------
----
g
---------------------------------------------------------------------
---------------------------------------------------------------------
Shawn Heisey
2018-08-10 03:51:11 UTC
Permalink
Post by Tommy Pham
Ah. I forgot about Apache migrating to Git a while back. I wasn't sure if
all the projects are migrated. Thank you, again.
As far as I know, there is no mandate at Apache to switch everything to
git.  It's up to each individual project to decide what source control
software they want to use.  Many projects are still using subversion for
their primary source repositories.

There is a general trend among projects (both open source and other)
towards switching to git.  It's the shiny new toy that everyone wants. 
Many Apache projects have switched to git, and are happy with that
choice.  In another ten years, there might be something new that
attracts the world's attention.

It would be amusing to me if the subversion project changed to something
else to house their source code.  That's probably never going to happen,
but if it did, I'd have to smile about it.

Thanks,
Shawn


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-***@hc.apache.org
For additional commands, e-mail: httpclient-users-***@hc.apache.org
Loading...