hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "richard schmidt" <hangst...@gmail.com>
Subject Re: Newbie question port 8080
Date Tue, 20 May 2008 02:04:57 GMT
 Here is the log.
message number 114 says it all!

2008/05/20 14:01:32:114 NZST [DEBUG] HttpConnection - Open connection to
iceb_test:80







http://iceb_test:8080/ICECream/GUI/packageFabricate?customerName=junk&packageName=junk&transportType=EXPORT&submit=Fabricate+Package

2008/05/20 14:01:22:880 NZST [DEBUG] HttpClient - Java version: 1.5.0_06

2008/05/20 14:01:22:880 NZST [DEBUG] HttpClient - Java vendor: Sun
Microsystems Inc.

2008/05/20 14:01:22:880 NZST [DEBUG] HttpClient - Java class path:
C:\Workspace\Grizzly\src\test\resources;C:\Workspace\Grizzly\target\classes;C:\Workspace\Grizzly\target\test-classes;C:\Workspace\Grizzly\src\main\resources;C:\Documents
and
Settings\schmidt\.m2\repository\com\metservice\ice\icecore\6.5.7\icecore-6.5.7.jar;C:\Documents
and
Settings\schmidt\.m2\repository\commons-httpclient\commons-httpclient\3.1\commons-httpclient-3.1.jar;C:\Documents
and
Settings\schmidt\.m2\repository\commons-logging\commons-logging\1.0.4\commons-logging-1.0.4.jar;C:\Documents
and
Settings\schmidt\.m2\repository\commons-codec\commons-codec\1.2\commons-codec-1.2.jar;C:\Documents
and
Settings\schmidt\.m2\repository\dom4j\dom4j\1.6.1\dom4j-1.6.1.jar;C:\Documents
and
Settings\schmidt\.m2\repository\xml-apis\xml-apis\1.0.b2\xml-apis-1.0.b2.jar;C:\Documents
and
Settings\schmidt\.m2\repository\javax\servlet\servlet-api\2.5\servlet-api-2.5.jar;C:\Documents
and
Settings\schmidt\.m2\repository\jaxen\jaxen\1.1-beta-6\jaxen-1.1-beta-6.jar;C:\Documents
and Settings\schmidt\.m2\repository\jdom\jdom\1.0\jdom-1.0.jar;C:\Documents
and
Settings\schmidt\.m2\repository\xerces\xmlParserAPIs\2.6.2\xmlParserAPIs-2.6.2.jar;C:\Documents
and
Settings\schmidt\.m2\repository\xerces\xercesImpl\2.6.2\xercesImpl-2.6.2.jar;C:\Documents
and Settings\schmidt\.m2\repository\xom\xom\1.0b3\xom-1.0b3.jar;C:\Documents
and
Settings\schmidt\.m2\repository\com\ibm\icu\icu4j\2.6.1\icu4j-2.6.1.jar;C:\Documents
and
Settings\schmidt\.m2\repository\xalan\xalan\2.6.0\xalan-2.6.0.jar;C:\Documents
and
Settings\schmidt\.m2\repository\org\ccil\cowan\tagsoup\tagsoup\0.9.7\tagsoup-0.9.7.jar;C:\Documents
and
Settings\schmidt\.m2\repository\junit\junit\3.8.2\junit-3.8.2.jar;C:\Documents
and
Settings\schmidt\.m2\repository\org\apache\xmlrpc\xmlrpc-client\3.1\xmlrpc-client-3.1.jar;C:\Documents
and
Settings\schmidt\.m2\repository\org\apache\xmlrpc\xmlrpc-common\3.1\xmlrpc-common-3.1.jar;C:\Documents
and
Settings\schmidt\.m2\repository\org\apache\ws\commons\util\ws-commons-util\1.0.2\ws-commons-util-1.0.2.jar;C:\Documents
and
Settings\schmidt\.m2\repository\org\springframework\spring-webmvc\2.5.4\spring-webmvc-2.5.4.jar;C:\Documents
and
Settings\schmidt\.m2\repository\org\springframework\spring-beans\2.5.4\spring-beans-2.5.4.jar;C:\Documents
and
Settings\schmidt\.m2\repository\org\springframework\spring-core\2.5.4\spring-core-2.5.4.jar;C:\Documents
and
Settings\schmidt\.m2\repository\org\springframework\spring-context\2.5.4\spring-context-2.5.4.jar;C:\Documents
and
Settings\schmidt\.m2\repository\aopalliance\aopalliance\1.0\aopalliance-1.0.jar;C:\Documents
and
Settings\schmidt\.m2\repository\org\springframework\spring-context-support\2.5.4\spring-context-support-2.5.4.jar;C:\Documents
and
Settings\schmidt\.m2\repository\org\springframework\spring-web\2.5.4\spring-web-2.5.4.jar;C:\Documents
and
Settings\schmidt\.m2\repository\commons-logging\commons-logging\1.1.1\commons-logging-1.1.1.jar;/C:/eclipse
3.3
wtp/eclipse/configuration/org.eclipse.osgi/bundles/192/1/.cp/;/C:/eclipse
3.3 wtp/eclipse/configuration/org.eclipse.osgi/bundles/190/1/.cp/

2008/05/20 14:01:22:911 NZST [DEBUG] HttpClient - Operating system name:
Windows XP

2008/05/20 14:01:22:911 NZST [DEBUG] HttpClient - Operating system
architecture: x86

2008/05/20 14:01:22:911 NZST [DEBUG] HttpClient - Operating system version:
5.1

2008/05/20 14:01:23:317 NZST [DEBUG] HttpClient - SUN 1.5: SUN (DSA
key/parameter generation; DSA signing; SHA-1, MD5 digests; SecureRandom;
X.509 certificates; JKS keystore; PKIX CertPathValidator; PKIX
CertPathBuilder; LDAP, Collection CertStores)

2008/05/20 14:01:23:317 NZST [DEBUG] HttpClient - SunRsaSign 1.5: Sun RSA
signature provider

2008/05/20 14:01:23:317 NZST [DEBUG] HttpClient - SunJSSE 1.5: Sun JSSE
provider(PKCS12, SunX509 key/trust factories, SSLv3, TLSv1)

2008/05/20 14:01:23:333 NZST [DEBUG] HttpClient - SunJCE 1.5: SunJCE
Provider (implements RSA, DES, Triple DES, AES, Blowfish, ARCFOUR, RC2, PBE,
Diffie-Hellman, HMAC)

2008/05/20 14:01:23:333 NZST [DEBUG] HttpClient - SunJGSS 1.0: Sun (Kerberos
v5)

2008/05/20 14:01:23:333 NZST [DEBUG] HttpClient - SunSASL 1.5: Sun SASL
provider(implements client mechanisms for: DIGEST-MD5, GSSAPI, EXTERNAL,
PLAIN, CRAM-MD5; server mechanisms for: DIGEST-MD5, GSSAPI, CRAM-MD5)

2008/05/20 14:01:23:349 NZST [DEBUG] DefaultHttpParams - Set parameter
http.useragent = Jakarta Commons-HttpClient/3.1

2008/05/20 14:01:23:364 NZST [DEBUG] DefaultHttpParams - Set parameter
http.protocol.version = HTTP/1.1

2008/05/20 14:01:23:380 NZST [DEBUG] DefaultHttpParams - Set parameter
http.connection-manager.class = class
org.apache.commons.httpclient.SimpleHttpConnectionManager

2008/05/20 14:01:23:380 NZST [DEBUG] DefaultHttpParams - Set parameter
http.protocol.cookie-policy = default

2008/05/20 14:01:23:380 NZST [DEBUG] DefaultHttpParams - Set parameter
http.protocol.element-charset = US-ASCII

2008/05/20 14:01:23:380 NZST [DEBUG] DefaultHttpParams - Set parameter
http.protocol.content-charset = ISO-8859-1

2008/05/20 14:01:23:396 NZST [DEBUG] DefaultHttpParams - Set parameter
http.method.retry-handler =
org.apache.commons.httpclient.DefaultHttpMethodRetryHandler@19a029e

2008/05/20 14:01:23:411 NZST [DEBUG] DefaultHttpParams - Set parameter
http.dateparser.patterns = [EEE, dd MMM yyyy HH:mm:ss zzz, EEEE, dd-MMM-yy
HH:mm:ss zzz, EEE MMM d HH:mm:ss yyyy, EEE, dd-MMM-yyyy HH:mm:ss z, EEE,
dd-MMM-yyyy HH-mm-ss z, EEE, dd MMM yy HH:mm:ss z, EEE dd-MMM-yyyy HH:mm:ss
z, EEE dd MMM yyyy HH:mm:ss z, EEE dd-MMM-yyyy HH-mm-ss z, EEE dd-MMM-yy
HH:mm:ss z, EEE dd MMM yy HH:mm:ss z, EEE,dd-MMM-yy HH:mm:ss z,
EEE,dd-MMM-yyyy HH:mm:ss z, EEE, dd-MM-yyyy HH:mm:ss z]

2008/05/20 14:01:32:114 NZST [DEBUG] HttpConnection - Open connection to
iceb_test:80

2008/05/20 14:01:32:130 NZST [DEBUG] header - >> "GET
/ICECream/GUI/packageFabricate?customerName=junk&packageName=junk&transportType=EXPORT&submit=Fabricate+Package
HTTP/1.1[\r][\n]"

2008/05/20 14:01:32:130 NZST [DEBUG] HttpMethodBase - Adding Host request
header

2008/05/20 14:01:32:193 NZST [DEBUG] header - >> "User-Agent: Jakarta
Commons-HttpClient/3.1[\r][\n]"

2008/05/20 14:01:32:193 NZST [DEBUG] header - >> "Host: iceb_test[\r][\n]"

2008/05/20 14:01:32:193 NZST [DEBUG] header - >> "[\r][\n]"

2008/05/20 14:01:32:193 NZST [DEBUG] header - << "HTTP/1.1 404 Not
Found[\r][\n]"


On 5/20/08, Oleg Kalnichevski <olegk@apache.org> wrote:
>
> richard schmidt wrote:
>
>> When I try and run this code, I always get a responce from a server at
>> port
>> 80.
>>
>>
> What makes you think so? Are you sure the request did not get redirected?
>
> Please turn on wire / context logging to see exactly what kind of data gets
> transferred across the wire and on what port
>
> http://hc.apache.org/httpclient-3.x/logging.html
>
> Hope this helps
>
> Oleg
>
> Which is rather odd, as the url clearly specifies port 8080!
>>
>>
>> HttpClient client = *new* HttpClient();
>>
>> HttpMethod get = *new* GetMethod(
>>
>> http://iceb_test:8080/ICECream/GUI/packageFabricate?customerName=junk&packageName=junk&transportType=EXPORT&submit=Fabricate+Package
>> );
>>
>>
>> I can open the url in a browser as expected....
>>
>> The server is a Jboss / tomcat
>>
>> On port 80 is apachie
>>
>>
>>
>> thanks
>>
>> Richard
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
> For additional commands, e-mail: httpclient-users-help@hc.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message