Re: problem with post

2003-03-16 Thread Oleg Kalnichevski
Vikram,
I have to tell I find it extremely frustrating that I have to ask the
same questions over and over again. 
- What kind of web server are you posting requests to?
- Are you sure your web server supports HTTP/1.1? 
- Have you tried using HTTP/1.0 to post requests?

What I can learn from the wire log is that the web server simply fails
to send back any sort of response and HttpClient eventually gives up
waiting for an response status line. I suppose your web server may have
compatibility issues with HTTP/1.1 that presents it from correctly
processing the request. I though it was 'expect: 100-continue'
handshake. Apparently I was wrong.

Please try the following 

PostMethod httppost = new PostMethod("http://whatever.com/";);
httppost.setHttp11(false);

I hope this helps

Cheers

Oleg



On Sat, 2003-03-15 at 01:19, [EMAIL PROTECTED] wrote:
> Disabling ExpectContinue handshake help either.Is there an other way to
> make it work.
> 
> Thanks
> Vikram



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: problem with post

2003-03-14 Thread vikram . x . kondadasula

Disabling ExpectContinue handshake help either.Is there an other way to
make it work.

Thanks
Vikram




"Michael Becke" <[EMAIL PROTECTED]> on 03/14/2003 06:57:59 PM

Please respond to "Commons HttpClient Project"
   <[EMAIL PROTECTED]>

To:"Commons HttpClient Project"
       <[EMAIL PROTECTED]>
cc:
Subject:Re: problem with post


You want to call setUseExpectHeader(false) on the post method.

Mike

On Friday, March 14, 2003, at 06:35 PM,
[EMAIL PROTECTED] wrote:

>
> Hai,
>
> I did get in the latest code.The wire log s different now but the
> problem
> persists.Oleg , could you be more explicit
> when you say  I should disable  ExpectContinue handshake. Here is the
> new
> wire log
>
> [DEBUG] wire - ->> "POST / HTTP/1.1[\r][\n]"
> [DEBUG] wire - ->> "User-Agent: Jakarta
> Commons-HttpClient/2.0alpha3[\r]
> [\n]"
> [DEBUG] wire - ->> "Host: 128.209.62.4:9090[\r][\n]"
> [DEBUG] wire - ->> "Content-Length: 821[\r][\n]"
> [DEBUG] wire - ->> "Expect: 100-continue[\r][\n]"
> [DEBUG] wire - ->> "[\r][\n]"
> [INFO] HttpMethod - -100 (continue) read timeout. Resume sending the
> request
> [DEBUG] wire - ->> "sending to router, serv_id 56,data
> <*ENVHDR{CID=NSDB;CVERS=2.2;ONLINE=N;CFN=DMLR;}%
> *REQUEST{EMP_ID=329;CENTER=423;TN=5164864970;REQ_ID=;LMOSREQ{}}%
> >[\r][\n]"
> [DEBUG] wire - ->> "[\r][\n]"
> [DEBUG] wire - ->> "sending to client  [DEBUG] wire - ->> "Content-type: text/fcif[\r][\n]"
> [DEBUG] wire - ->> "Content-length: 531[\r][\n]"
> [DEBUG] wire - ->> "[\r][\n]"
> [DEBUG] wire - ->> "*ENVHDR{[\r][\n]"
> [DEBUG] wire - ->> "CID=NSDB;[\r][\n]"
> [DEBUG] wire - ->> "CVERS=2.2;[\r][\n]"
> [DEBUG] wire - ->> "ONLINE=N;[\r][\n]"
> [DEBUG] wire - ->> "CFN=DMLR;[\r][\n]"
> [DEBUG] wire - ->> "ERRMSG=SUCCESSFUL;[\r][\n]"
> [DEBUG] wire - ->> "ERRN=0;[\r][\n]"
> [DEBUG] wire - ->> "}%[\r][\n]"
> [DEBUG] wire - ->> "*REQUEST{[\r][\n]"
> [DEBUG] wire - ->> "EMP_ID=329;[\r][\n]"
> [DEBUG] wire - ->> "CENTER=423;[\r][\n]"
> [DEBUG] wire - ->> "TN=5164864970;[\r][\n]"
> [DEBUG] wire - ->> "REQ_ID=;[\r][\n]"
> [DEBUG] wire - ->> "LMOSREQ{[\r][\n]"
> [DEBUG] wire - ->> "}[\r][\n]"
> [DEBUG] wire - ->> "}%[\r][\n]"
> [DEBUG] wire - ->> "*RESULTS{[\r][\n]"
> [DEBUG] wire - ->> "RETC=;[\r][\n]"
> [DEBUG] wire - ->> "RSTYPE=C;[\r][\n]"
> [DEBUG] wire - ->> "NSDBRS{[\r][\n]"
> [DEBUG] wire - ->> "CUST{[\r][\n]"
> [DEBUG] wire - ->> "LN=BONONNO, ROBERT;[\r][\n]"
> [DEBUG] wire - ->> "SA=109 E 2 MANHATTAN NY;[\r][\n]"
> [DEBUG] wire - ->> "LOC=FLR=3 APT=6;[\r][\n]"
> [DEBUG] wire - ->> "DLR_CUS=365;[\r][\n]"
> [DEBUG] wire - ->> "DLR_MAIN=2077723759;[\r][\n]"
> [DEBUG] wire - ->> "DLR_BTN=2077723759;[\r][\n]"
> [DEBUG] wire - ->> "}[\r][\n]"
> [DEBUG] wire - ->> "LS{[\r][\n]"
> [DEBUG] wire - ->> "WKG=IE;[\r][\n]"
> [DEBUG] wire - ->> "OEID=AA08-1-01-30;[\r][\n]"
> [DEBUG] wire - ->> "NUMFACS=2;[\r][\n]"
> [DEBUG] wire - ->> "}[\r][\n]"
> [DEBUG] wire - ->> "EQUIP{[\r][\n]"
> [DEBUG] wire - ->> "TERM=SINGLE PARTY;[\r][\n]"
> [DEBUG] wire - ->> "}[\r][\n]"
> [DEBUG] wire - ->> "FN{[\r][\n]"
> [DEBUG] wire - ->> "NAMEOFFAC=F1;[\r][\n]"
> [DEBUG] wire - ->> "CA=F1003;[\r][\n]"
> [DEBUG] wire - ->> "PR=352;[\r][\n]"
> [DEBUG] wire - ->> "BP=354;[\r][\n]"
> [DEBUG] wire - ->> "TEA=SCT 18-20 1 AV OT X;[\r][\n]"
> [DEBUG] wire - ->> "}[\r][\n]"
> [DEBUG] wire - ->> "FN{[\r][\n]"
> [DEBUG] wire - ->> "NAMEOFFAC=F2;[\r][\n]"
> [DEBUG] wire - ->> "CA=1135X;[\r][\n]"
> [DEBUG] wire - ->> "PR=910;[\r][\n]"
> [DEBUG] wire - ->> "BP=10;[\r][\n]"
> [DEBUG] wire - ->> "TEA=109 E 2 REAR OT C;[\r][\n]"
> [DEBUG] wire - ->> "}[\r][\n]"
> [DEBUG] wire - ->> "}[\r][\n]"
> [DEBUG] wire - ->> "}%[\r][\n]"
> [DEBUG] wire - ->> &quo

Re: problem with post

2003-03-14 Thread Michael Becke
You want to call setUseExpectHeader(false) on the post method.

Mike

On Friday, March 14, 2003, at 06:35 PM,  
[EMAIL PROTECTED] wrote:

Hai,

I did get in the latest code.The wire log s different now but the  
problem
persists.Oleg , could you be more explicit
when you say  I should disable  ExpectContinue handshake. Here is the  
new
wire log

[DEBUG] wire - ->> "POST / HTTP/1.1[\r][\n]"
[DEBUG] wire - ->> "User-Agent: Jakarta  
Commons-HttpClient/2.0alpha3[\r]
[\n]"
[DEBUG] wire - ->> "Host: 128.209.62.4:9090[\r][\n]"
[DEBUG] wire - ->> "Content-Length: 821[\r][\n]"
[DEBUG] wire - ->> "Expect: 100-continue[\r][\n]"
[DEBUG] wire - ->> "[\r][\n]"
[INFO] HttpMethod - -100 (continue) read timeout. Resume sending the
request
[DEBUG] wire - ->> "sending to router, serv_id 56,data
<*ENVHDR{CID=NSDB;CVERS=2.2;ONLINE=N;CFN=DMLR;}%
*REQUEST{EMP_ID=329;CENTER=423;TN=5164864970;REQ_ID=;LMOSREQ{}}%  
>[\r][\n]"
[DEBUG] wire - ->> "[\r][\n]"
[DEBUG] wire - ->> "sending to client 
[DEBUG] wire - ->> "Content-type: text/fcif[\r][\n]"
[DEBUG] wire - ->> "Content-length: 531[\r][\n]"
[DEBUG] wire - ->> "[\r][\n]"
[DEBUG] wire - ->> "*ENVHDR{[\r][\n]"
[DEBUG] wire - ->> "CID=NSDB;[\r][\n]"
[DEBUG] wire - ->> "CVERS=2.2;[\r][\n]"
[DEBUG] wire - ->> "ONLINE=N;[\r][\n]"
[DEBUG] wire - ->> "CFN=DMLR;[\r][\n]"
[DEBUG] wire - ->> "ERRMSG=SUCCESSFUL;[\r][\n]"
[DEBUG] wire - ->> "ERRN=0;[\r][\n]"
[DEBUG] wire - ->> "}%[\r][\n]"
[DEBUG] wire - ->> "*REQUEST{[\r][\n]"
[DEBUG] wire - ->> "EMP_ID=329;[\r][\n]"
[DEBUG] wire - ->> "CENTER=423;[\r][\n]"
[DEBUG] wire - ->> "TN=5164864970;[\r][\n]"
[DEBUG] wire - ->> "REQ_ID=;[\r][\n]"
[DEBUG] wire - ->> "LMOSREQ{[\r][\n]"
[DEBUG] wire - ->> "}[\r][\n]"
[DEBUG] wire - ->> "}%[\r][\n]"
[DEBUG] wire - ->> "*RESULTS{[\r][\n]"
[DEBUG] wire - ->> "RETC=;[\r][\n]"
[DEBUG] wire - ->> "RSTYPE=C;[\r][\n]"
[DEBUG] wire - ->> "NSDBRS{[\r][\n]"
[DEBUG] wire - ->> "CUST{[\r][\n]"
[DEBUG] wire - ->> "LN=BONONNO, ROBERT;[\r][\n]"
[DEBUG] wire - ->> "SA=109 E 2 MANHATTAN NY;[\r][\n]"
[DEBUG] wire - ->> "LOC=FLR=3 APT=6;[\r][\n]"
[DEBUG] wire - ->> "DLR_CUS=365;[\r][\n]"
[DEBUG] wire - ->> "DLR_MAIN=2077723759;[\r][\n]"
[DEBUG] wire - ->> "DLR_BTN=2077723759;[\r][\n]"
[DEBUG] wire - ->> "}[\r][\n]"
[DEBUG] wire - ->> "LS{[\r][\n]"
[DEBUG] wire - ->> "WKG=IE;[\r][\n]"
[DEBUG] wire - ->> "OEID=AA08-1-01-30;[\r][\n]"
[DEBUG] wire - ->> "NUMFACS=2;[\r][\n]"
[DEBUG] wire - ->> "}[\r][\n]"
[DEBUG] wire - ->> "EQUIP{[\r][\n]"
[DEBUG] wire - ->> "TERM=SINGLE PARTY;[\r][\n]"
[DEBUG] wire - ->> "}[\r][\n]"
[DEBUG] wire - ->> "FN{[\r][\n]"
[DEBUG] wire - ->> "NAMEOFFAC=F1;[\r][\n]"
[DEBUG] wire - ->> "CA=F1003;[\r][\n]"
[DEBUG] wire - ->> "PR=352;[\r][\n]"
[DEBUG] wire - ->> "BP=354;[\r][\n]"
[DEBUG] wire - ->> "TEA=SCT 18-20 1 AV OT X;[\r][\n]"
[DEBUG] wire - ->> "}[\r][\n]"
[DEBUG] wire - ->> "FN{[\r][\n]"
[DEBUG] wire - ->> "NAMEOFFAC=F2;[\r][\n]"
[DEBUG] wire - ->> "CA=1135X;[\r][\n]"
[DEBUG] wire - ->> "PR=910;[\r][\n]"
[DEBUG] wire - ->> "BP=10;[\r][\n]"
[DEBUG] wire - ->> "TEA=109 E 2 REAR OT C;[\r][\n]"
[DEBUG] wire - ->> "}[\r][\n]"
[DEBUG] wire - ->> "}[\r][\n]"
[DEBUG] wire - ->> "}%[\r][\n]"
[DEBUG] wire - ->> ">"
[DEBUG] wire - -<< "
[WARN] HttpMethod - -Recoverable exception caught when reading response
org.apache.commons.httpclient.HttpRecoverableException:
org.apache.commons.httpclient.HttpRecoverableException: Error in  
parsing
the status  line from the response: unable to find line starting with
"HTTP/"
  at
org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBas 
e.java:1735)
  at
org.apache.commons.httpclient.HttpMethodBase.processRequest(HttpMethodB 
ase.java:2336)
  at
org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.jav 
a:950)
  at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java: 
578)
  at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java: 
4

RE: problem with post

2003-03-14 Thread vikram . x . kondadasula

Hai,

I did get in the latest code.The wire log s different now but the problem
persists.Oleg , could you be more explicit
when you say  I should disable  ExpectContinue handshake. Here is the new
wire log

[DEBUG] wire - ->> "POST / HTTP/1.1[\r][\n]"
[DEBUG] wire - ->> "User-Agent: Jakarta Commons-HttpClient/2.0alpha3[\r]
[\n]"
[DEBUG] wire - ->> "Host: 128.209.62.4:9090[\r][\n]"
[DEBUG] wire - ->> "Content-Length: 821[\r][\n]"
[DEBUG] wire - ->> "Expect: 100-continue[\r][\n]"
[DEBUG] wire - ->> "[\r][\n]"
[INFO] HttpMethod - -100 (continue) read timeout. Resume sending the
request
[DEBUG] wire - ->> "sending to router, serv_id 56,data
<*ENVHDR{CID=NSDB;CVERS=2.2;ONLINE=N;CFN=DMLR;}%
*REQUEST{EMP_ID=329;CENTER=423;TN=5164864970;REQ_ID=;LMOSREQ{}}% >[\r][\n]"
[DEBUG] wire - ->> "[\r][\n]"
[DEBUG] wire - ->> "sending to client > "Content-type: text/fcif[\r][\n]"
[DEBUG] wire - ->> "Content-length: 531[\r][\n]"
[DEBUG] wire - ->> "[\r][\n]"
[DEBUG] wire - ->> "*ENVHDR{[\r][\n]"
[DEBUG] wire - ->> "CID=NSDB;[\r][\n]"
[DEBUG] wire - ->> "CVERS=2.2;[\r][\n]"
[DEBUG] wire - ->> "ONLINE=N;[\r][\n]"
[DEBUG] wire - ->> "CFN=DMLR;[\r][\n]"
[DEBUG] wire - ->> "ERRMSG=SUCCESSFUL;[\r][\n]"
[DEBUG] wire - ->> "ERRN=0;[\r][\n]"
[DEBUG] wire - ->> "}%[\r][\n]"
[DEBUG] wire - ->> "*REQUEST{[\r][\n]"
[DEBUG] wire - ->> "EMP_ID=329;[\r][\n]"
[DEBUG] wire - ->> "CENTER=423;[\r][\n]"
[DEBUG] wire - ->> "TN=5164864970;[\r][\n]"
[DEBUG] wire - ->> "REQ_ID=;[\r][\n]"
[DEBUG] wire - ->> "LMOSREQ{[\r][\n]"
[DEBUG] wire - ->> "}[\r][\n]"
[DEBUG] wire - ->> "}%[\r][\n]"
[DEBUG] wire - ->> "*RESULTS{[\r][\n]"
[DEBUG] wire - ->> "RETC=;[\r][\n]"
[DEBUG] wire - ->> "RSTYPE=C;[\r][\n]"
[DEBUG] wire - ->> "NSDBRS{[\r][\n]"
[DEBUG] wire - ->> "CUST{[\r][\n]"
[DEBUG] wire - ->> "LN=BONONNO, ROBERT;[\r][\n]"
[DEBUG] wire - ->> "SA=109 E 2 MANHATTAN NY;[\r][\n]"
[DEBUG] wire - ->> "LOC=FLR=3 APT=6;[\r][\n]"
[DEBUG] wire - ->> "DLR_CUS=365;[\r][\n]"
[DEBUG] wire - ->> "DLR_MAIN=2077723759;[\r][\n]"
[DEBUG] wire - ->> "DLR_BTN=2077723759;[\r][\n]"
[DEBUG] wire - ->> "}[\r][\n]"
[DEBUG] wire - ->> "LS{[\r][\n]"
[DEBUG] wire - ->> "WKG=IE;[\r][\n]"
[DEBUG] wire - ->> "OEID=AA08-1-01-30;[\r][\n]"
[DEBUG] wire - ->> "NUMFACS=2;[\r][\n]"
[DEBUG] wire - ->> "}[\r][\n]"
[DEBUG] wire - ->> "EQUIP{[\r][\n]"
[DEBUG] wire - ->> "TERM=SINGLE PARTY;[\r][\n]"
[DEBUG] wire - ->> "}[\r][\n]"
[DEBUG] wire - ->> "FN{[\r][\n]"
[DEBUG] wire - ->> "NAMEOFFAC=F1;[\r][\n]"
[DEBUG] wire - ->> "CA=F1003;[\r][\n]"
[DEBUG] wire - ->> "PR=352;[\r][\n]"
[DEBUG] wire - ->> "BP=354;[\r][\n]"
[DEBUG] wire - ->> "TEA=SCT 18-20 1 AV OT X;[\r][\n]"
[DEBUG] wire - ->> "}[\r][\n]"
[DEBUG] wire - ->> "FN{[\r][\n]"
[DEBUG] wire - ->> "NAMEOFFAC=F2;[\r][\n]"
[DEBUG] wire - ->> "CA=1135X;[\r][\n]"
[DEBUG] wire - ->> "PR=910;[\r][\n]"
[DEBUG] wire - ->> "BP=10;[\r][\n]"
[DEBUG] wire - ->> "TEA=109 E 2 REAR OT C;[\r][\n]"
[DEBUG] wire - ->> "}[\r][\n]"
[DEBUG] wire - ->> "}[\r][\n]"
[DEBUG] wire - ->> "}%[\r][\n]"
[DEBUG] wire - ->> ">"
[DEBUG] wire - -<< "
[WARN] HttpMethod - -Recoverable exception caught when reading response
org.apache.commons.httpclient.HttpRecoverableException:
org.apache.commons.httpclient.HttpRecoverableException: Error in parsing
the status  line from the response: unable to find line starting with
"HTTP/"
  at
org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1735)
  at
org.apache.commons.httpclient.HttpMethodBase.processRequest(HttpMethodBase.java:2336)
  at
org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:950)
  at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:578)
  at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:477)
  at
com.verizon.wbtt.components.validator.BMEXTest.main(BMEXTest.java:38)
Exception in thread "main"

Thanks
Vikram




"Kalnichevski, Oleg" <[E

Re: [INPUT NEEDED] RE: problem with post

2003-03-14 Thread Michael Becke
I would say disable by default.  It's the source of much trouble and 
does not really add much in the way of functionality.

Mike

Kalnichevski, Oleg wrote:
Aurelien 

Upgrade was the VERY first point on the list in my instructions ;-). 

The 'expect: 100-continue' story is far from being over yet. I am still working on it. I have been running tests with various browsers. Strangely enough, neither IE nor Mozilla appear to be using 'expect: 100-continue' handshake at all. I am REALLY leaning towards disabling the damn thing per default in order to avoid situations like Vikram found himself in

Folks, what do you think? Shall we disable 'expect: 100-continue' handshake per default?

Oleg

-Original Message-
From: Aurelien Pernoud [mailto:[EMAIL PROTECTED]
Sent: Freitag, 14. März 2003 17:10
To: 'Commons HttpClient Project'
Subject: RE: problem with post


I think he's using the 2.0a3 release, and not cvs, and there the Expect:
100-continue was buggy...
I say that cause I had the exact same log with tomcat 4 and 2.0a3

Kalnichevski, Oleg a écrit :


Vikram
Now it is clear as day light, that the web server you are
posting requests to does not support (or does not correctly
implement) 'Expect: 100-continue' handshake.
1) What web server are you using? Does the server support HTTP/1.1?
2) Follow the instructions from my previous post to work the problem
around Cheers
Oleg


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: [INPUT NEEDED] RE: problem with post

2003-03-14 Thread Aurelien Pernoud
Yes, but the LOG.trace("enter HttpConnection.responseAvaliable()"); which
had a typo isn't anymore in cvs (it has been removed from httpconnection
here :



So even if you told him to upgrade, I really think he didn't, cause in his
log, there's hundred of "enter HttpConnection.responseAvaliable()".

That's why you can't even work on that possible bug he met :)

Kalnichevski, Oleg a écrit :

> Aurelien
> 
> Upgrade was the VERY first point on the list in my instructions ;-).
> 
> The 'expect: 100-continue' story is far from being over yet.
> I am still working on it. I have been running tests with
> various browsers. Strangely enough, neither IE nor Mozilla
> appear to be using 'expect: 100-continue' handshake at all. I
> am REALLY leaning towards disabling the damn thing per
> default in order to avoid situations like Vikram found himself in
> 
> Folks, what do you think? Shall we disable 'expect:
> 100-continue' handshake per default?
> 
> Oleg

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

[INPUT NEEDED] RE: problem with post

2003-03-14 Thread Kalnichevski, Oleg
Aurelien 

Upgrade was the VERY first point on the list in my instructions ;-). 

The 'expect: 100-continue' story is far from being over yet. I am still working on it. 
I have been running tests with various browsers. Strangely enough, neither IE nor 
Mozilla appear to be using 'expect: 100-continue' handshake at all. I am REALLY 
leaning towards disabling the damn thing per default in order to avoid situations like 
Vikram found himself in

Folks, what do you think? Shall we disable 'expect: 100-continue' handshake per 
default?

Oleg

-Original Message-
From: Aurelien Pernoud [mailto:[EMAIL PROTECTED]
Sent: Freitag, 14. März 2003 17:10
To: 'Commons HttpClient Project'
Subject: RE: problem with post



I think he's using the 2.0a3 release, and not cvs, and there the Expect:
100-continue was buggy...

I say that cause I had the exact same log with tomcat 4 and 2.0a3

Kalnichevski, Oleg a écrit :

> Vikram
> Now it is clear as day light, that the web server you are
> posting requests to does not support (or does not correctly
> implement) 'Expect: 100-continue' handshake.
> 1) What web server are you using? Does the server support HTTP/1.1?
> 2) Follow the instructions from my previous post to work the problem
> around Cheers
> Oleg


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: problem with post

2003-03-14 Thread Aurelien Pernoud

I think he's using the 2.0a3 release, and not cvs, and there the Expect:
100-continue was buggy...

I say that cause I had the exact same log with tomcat 4 and 2.0a3

Kalnichevski, Oleg a écrit :

> Vikram
> Now it is clear as day light, that the web server you are
> posting requests to does not support (or does not correctly
> implement) 'Expect: 100-continue' handshake.
> 1) What web server are you using? Does the server support HTTP/1.1?
> 2) Follow the instructions from my previous post to work the problem
> around Cheers
> Oleg

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: problem with post

2003-03-14 Thread Kalnichevski, Oleg
Vikram
Now it is clear as day light, that the web server you are posting requests to does not 
support (or does not correctly implement) 'Expect: 100-continue' handshake. 
1) What web server are you using? Does the server support HTTP/1.1? 
2) Follow the instructions from my previous post to work the problem around
Cheers
Oleg

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Freitag, 14. März 2003 16:37
To: Commons HttpClient Project
Subject: RE: problem with post



Hai,

Thanks Tom for pointing out that. Here is my wire log
[DEBUG] wire - ->> "POST / HTTP/1.1
" [\r\n]
[DEBUG] wire - ->> "User-Agent: Jakarta Commons-HttpClient/2.0alpha3
" [\r\n]
[DEBUG] wire - ->> "Host: 128.209.62.4:9090
" [\r\n]
[DEBUG] wire - ->> "Content-Length: 821
" [\r\n]
[DEBUG] wire - ->> "Expect: 100-continue
" [\r\n]
[DEBUG] wire - ->> [\r\n]
[DEBUG] wire - -<< "
org.apache.commons.httpclient.HttpRecoverableException:
org.apache.commons.httpclient.HttpRecoverableException: Error in parsing
the status  line from the response: unable to find line starting with
"HTTP/"
  at
org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1733)
  at
org.apache.commons.httpclient.HttpMethodBase.writeRemainingRequestBody(HttpMethodBase.java:2377)
  at
org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:963)
  at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:578)
  at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:477)
  at
com.verizon.wbtt.components.validator.BMEXTest.main(BMEXTest.java:39)
Exception in thread "main"




And here is the   log

executed post821
[TRACE] GetMethod - -enter GetMethod(String)
[TRACE] PostMethod - -enter PostMethod.setRequestBody(InputStream)
[TRACE] EntityEnclosingMethod - -enter
EntityEnclosingMethod.setRequestBody(InputStream)
[TRACE] EntityEnclosingMethod - -enter
EntityEnclosingMethod.setRequestContentLength(int)
[TRACE] HttpClient - -enter HttpClient.executeMethod(HttpMethod)
[TRACE] HttpClient - -enter
HttpClient.executeMethod(HostConfiguration,HttpMethod)
[DEBUG] HttpConnection - -HttpConnectionManager.getConnection:  creating
connection for 128.209.62.4:9090 via null:-1 using protocol: http:80
[DEBUG] HttpConnection - -HttpConnection.setSoTimeout(0)
[TRACE] HttpConnection - -enter HttpConnection.open()
[TRACE] HttpMethod - -enter HttpMethodBase.execute(HttpState,
HttpConnection)
[TRACE] Authenticator - -enter Authenticator.authenticate(HttpMethod,
HttpState)
[TRACE] Authenticator - -enter Authenticator.authenticate(HttpMethod,
HttpState, Header, String)
[DEBUG] HttpMethod - -Execute loop try 1
[TRACE] HttpMethod - -enter HttpMethodBase.processRequest(HttpState,
HttpConnection)
[TRACE] HttpMethod - -Attempt number 1 to write request
[TRACE] HttpMethod - -enter HttpMethodBase.writeRequest(HttpState,
HttpConnection)
[TRACE] HttpMethod - -enter HttpMethodBase.writeRequestLine(HttpState,
HttpConnection)
[TRACE] HttpMethod - -enter
HttpMethodBase.generateRequestLine(HttpConnection, String, String, String,
String)
[TRACE] HttpConnection - -enter HttpConnection.print(String)
[TRACE] HttpConnection - -enter HttpConnection.write(byte[])
[TRACE] HttpConnection - -enter HttpConnection.write(byte[], int, int)
[DEBUG] wire - ->> "POST / HTTP/1.1
" [\r\n]
[TRACE] HttpMethod - -enter
HttpMethodBase.writeRequestHeaders(HttpState,HttpConnection)
[TRACE] EntityEnclosingMethod - -enter
EntityEnclosingMethod.addRequestHeaders(HttpState, HttpConnection)
[TRACE] HttpMethod - -enter HttpMethodBase.addRequestHeaders(HttpState,
HttpConnection)
[TRACE] HttpMethod - -enter
HttpMethodBase.addUserAgentRequestHeaders(HttpState, HttpConnection)
[TRACE] HttpMethod - -enter HttpMethodBase.addHostRequestHeader(HttpState,
HttpConnection)
[DEBUG] HttpMethod - -Adding Host request header
[TRACE] HttpMethod - -enter
HttpMethodBase.addCookieRequestHeader(HttpState, HttpConnection)
[TRACE] HttpState - -enter HttpState.getCookies()
[TRACE] CookieSpec - -enter CookieSpecBase.match(String, int, String,
boolean, Cookie[])
[TRACE] HttpMethod - -enter
HttpMethodBase.addAuthorizationRequestHeader(HttpState, HttpConnection)
[TRACE] HttpMethod - -enter
HttpMethodBase.addProxyAuthorizationRequestHeader(HttpState,
HttpConnection)
[TRACE] HttpMethod - -enter
HttpMethodBase.addContentLengthRequestHeader(HttpState, HttpConnection)
[TRACE] EntityEnclosingMethod - -enter
EntityEnclosingMethod.getRequestContentLength()
[TRACE] HttpConnection - -enter HttpConnection.print(String)
[TRACE] HttpConnection - -enter HttpConnection.write(byte[])
[TRACE] HttpConnection - -enter HttpConnection.write(byte[], int, int)
[DEBUG] wire - ->> "User-Agent: Jakarta Commons-HttpClient/2.0alpha3
" [\r\n]
[TRACE] HttpConnection - -enter HttpConnection.print(String)
[TRACE] Htt

RE: problem with post

2003-03-14 Thread vikram . x . kondadasula
on - -enter HttpConnection.responseAvaliable()
[TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
[TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
[TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
[TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
[TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
[TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
[TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
[TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
[TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
[TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
[TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
[TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
[TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
[TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
[TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
[TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
[TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
[TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
[TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
[TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
[TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
[TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
[TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
[TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
[TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
[TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
[TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
[TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
[DEBUG] HttpConnection - -Waiting for response timeout
[DEBUG] HttpMethod - -Response not available. Send the request body
[TRACE] HttpMethod - -enter writeRemainingRequestBody(HttpState,
HttpConnection)
[TRACE] EntityEnclosingMethod - -enter
EntityEnclosingMethod.writeRequestBody(HttpState, HttpConnection)
[TRACE] EntityEnclosingMethod - -enter
EntityEnclosingMethod.getRequestContentLength()
[TRACE] EntityEnclosingMethod - -enter EntityEnclosingMethod.getRequestBody
()
[TRACE] HttpConnection - -enter HttpConnection.getRequestOutputStream()
[DEBUG] EntityEnclosingMethod - -Request body sent
[TRACE] HttpMethod - -enter HttpMethodBase.readResponse(HttpState,
HttpConnection)
[TRACE] HttpMethod - -enter HttpMethodBase.readStatusLine(HttpState,
HttpConnection)
[TRACE] HttpConnection - -enter HttpConnection.readLine()
[TRACE] HttpParser - -enter HttpConnection.readLine()
[TRACE] HttpParser - -enter HttpConnection.readRawLine()
[DEBUG] wire - -<< "
org.apache.commons.httpclient.HttpRecoverableException:
org.apache.commons.httpclient.HttpRecoverableException: Error in parsing
the status  line from the response: unable to find line starting with
"HTTP/"
  at
org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1733)
  at
org.apache.commons.httpclient.HttpMethodBase.writeRemainingRequestBody(HttpMethodBase.java:2377)
  at
org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:963)
  at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:578)
  at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:477)
  at
com.verizon.wbtt.components.validator.BMEXTest.main(BMEXTest.java:38)
Exception in thread "main"

Thanks
Vikram




"Tom Samplonius" <[EMAIL PROTECTED]> on 03/14/2003 02:06:09 AM

Please respond to "Commons HttpClient Project"
   <[EMAIL PROTECTED]>

To:"Commons HttpClient Project"
   <[EMAIL PROTECTED]>
cc:
Subject:RE: problem with post



On Thu, 13 Mar 2003 [EMAIL PROTECTED] wrote:

> System.setProperty(
> "org.apache.commons.logging.simplelog.log.httpclient.wire ", "debug");

  I had this problem too.  You copied this right off the website, didn't
you?  Well, there is an extra space after ".wire" that prevents this from
doing anything.  Take it out, and it will activate wirelogging.

  Someone might want to fix the website.

Tom


-
To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]










-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: problem with post

2003-03-14 Thread Kalnichevski, Oleg
Tom
Thanks for pointing it out
Cheers
Oleg

-Original Message-
From: Tom Samplonius [mailto:[EMAIL PROTECTED]
Sent: Freitag, 14. März 2003 08:06
To: Commons HttpClient Project
Subject: RE: problem with post



On Thu, 13 Mar 2003 [EMAIL PROTECTED] wrote:

> System.setProperty(
> "org.apache.commons.logging.simplelog.log.httpclient.wire ", "debug");

  I had this problem too.  You copied this right off the website, didn't
you?  Well, there is an extra space after ".wire" that prevents this from
doing anything.  Take it out, and it will activate wirelogging.

  Someone might want to fix the website.

Tom


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: problem with post

2003-03-14 Thread Tom Samplonius

On Thu, 13 Mar 2003 [EMAIL PROTECTED] wrote:

> System.setProperty(
> "org.apache.commons.logging.simplelog.log.httpclient.wire ", "debug");

  I had this problem too.  You copied this right off the website, didn't
you?  Well, there is an extra space after ".wire" that prevents this from
doing anything.  Take it out, and it will activate wirelogging.

  Someone might want to fix the website.

Tom


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: problem with post

2003-03-13 Thread Oleg Kalnichevski
liable()
> [TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
> [TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
> [TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
> [TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
> [TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
> [TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
> [TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
> [TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
> [TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
> [TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
> [TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
> [TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
> [TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
> [TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
> [TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
> [TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
> [TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
> [TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
> [TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
> [TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
> [TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
> [TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
> [TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
> [TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
> [TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
> [TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
> [TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
> [TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
> [TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
> [TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
> [TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
> [TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
> [TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
> [TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
> [TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
> [TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
> [TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
> [TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
> [TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
> [TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
> [TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
> [TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
> [TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
> [TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
> [TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
> [TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
> [TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
> [TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
> [TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
> [TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
> [TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
> [DEBUG] HttpConnection - -Waiting for response timeout
> [DEBUG] HttpMethod - -Response not available. Send the request body
> [TRACE] HttpMethod - -enter writeRemainingRequestBody(HttpState,
> HttpConnection)
> [TRACE] EntityEnclosingMethod - -enter
> EntityEnclosingMethod.writeRequestBody(HttpState, HttpConnection)
> [TRACE] EntityEnclosingMethod - -enter
> EntityEnclosingMethod.getRequestContentLength()
> [TRACE] EntityEnclosingMethod - -enter EntityEnclosingMethod.getRequestBody
> ()
> [TRACE] HttpConnection - -enter HttpConnection.getRequestOutputStream()
> [DEBUG] EntityEnclosingMethod - -Request body sent
> [TRACE] HttpMethod - -enter HttpMethodBase.readResponse(HttpState,
> HttpConnection)
> [TRACE] HttpMethod - -enter HttpMethodBase.readStatusLine(HttpState,
> HttpConnection)
> [TRACE] HttpConnection - -enter HttpConnection.readLine()
> [TRACE] HttpParser - -enter HttpConnection.readLine()
> [TRACE] HttpParser - -enter HttpConnection.readRawLine()
> 
> 
> 
> 
> "Adrian Sutton" <[EMAIL PROTECTED]> on 03/13/2003 06:05:03 PM
> 
> Please respond to "Commons HttpClient Project"
><[EMAIL PROTECTED]>
>

RE: problem with post

2003-03-13 Thread vikram . x . kondadasula
nnection.responseAvaliable()
[TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
[TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
[TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
[TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
[TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
[TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
[TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
[TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
[TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
[TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
[TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
[TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
[TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
[TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
[TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
[TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
[TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
[TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
[TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
[TRACE] HttpConnection - -enter HttpConnection.responseAvaliable()
[DEBUG] HttpConnection - -Waiting for response timeout
[DEBUG] HttpMethod - -Response not available. Send the request body
[TRACE] HttpMethod - -enter writeRemainingRequestBody(HttpState,
HttpConnection)
[TRACE] EntityEnclosingMethod - -enter
EntityEnclosingMethod.writeRequestBody(HttpState, HttpConnection)
[TRACE] EntityEnclosingMethod - -enter
EntityEnclosingMethod.getRequestContentLength()
[TRACE] EntityEnclosingMethod - -enter EntityEnclosingMethod.getRequestBody
()
[TRACE] HttpConnection - -enter HttpConnection.getRequestOutputStream()
[DEBUG] EntityEnclosingMethod - -Request body sent
[TRACE] HttpMethod - -enter HttpMethodBase.readResponse(HttpState,
HttpConnection)
[TRACE] HttpMethod - -enter HttpMethodBase.readStatusLine(HttpState,
HttpConnection)
[TRACE] HttpConnection - -enter HttpConnection.readLine()
[TRACE] HttpParser - -enter HttpConnection.readLine()
[TRACE] HttpParser - -enter HttpConnection.readRawLine()




"Adrian Sutton" <[EMAIL PROTECTED]> on 03/13/2003 06:05:03 PM

Please respond to "Commons HttpClient Project"
   <[EMAIL PROTECTED]>

To:    "'Commons HttpClient Project'"
   <[EMAIL PROTECTED]>
cc:
Subject:RE: problem with post


It may also be worth taking a look at:
http://jakarta.apache.org/commons/httpclient/troubleshooting.html

which has some basic tips on tracking things down.  The results of "Things
To Try" are generally useful (though 7 and 8 are getting a bit technical so
I usually leave them for really difficult cases).

Hope that helps,

Adrian Sutton, Software Engineer
Ephox Corporation
www.ephox.com


-Original Message-
From: Oleg Kalnichevski [mailto:[EMAIL PROTECTED]
Sent: Friday, 14 March 2003 7:48 AM
To: Commons HttpClient Project
Subject: Re: problem with post


Vikram

2.0 has not been released yet. You must be using one of the alphas.

In order to be able to help you I need wire log too. I need to know what
gets sent across the wire.

Anyways, I suggest that you upgrade to the most recent CVS snapshot.
There's been a few bug fixes since the latest Alpha2 release

Oleg

-
To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]










-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: problem with post

2003-03-13 Thread Adrian Sutton
It may also be worth taking a look at:
http://jakarta.apache.org/commons/httpclient/troubleshooting.html

which has some basic tips on tracking things down.  The results of "Things
To Try" are generally useful (though 7 and 8 are getting a bit technical so
I usually leave them for really difficult cases).

Hope that helps,

Adrian Sutton, Software Engineer
Ephox Corporation
www.ephox.com


-Original Message-
From: Oleg Kalnichevski [mailto:[EMAIL PROTECTED]
Sent: Friday, 14 March 2003 7:48 AM
To: Commons HttpClient Project
Subject: Re: problem with post


Vikram

2.0 has not been released yet. You must be using one of the alphas. 

In order to be able to help you I need wire log too. I need to know what
gets sent across the wire.   

Anyways, I suggest that you upgrade to the most recent CVS snapshot.
There's been a few bug fixes since the latest Alpha2 release  

Oleg

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: problem with post

2003-03-13 Thread Oleg Kalnichevski
ACE] HttpConnection - -enter
> HttpConnection.write(byte[])
> 2003/03/13 16:31:26:812 EST [TRACE] HttpConnection - -enter
> HttpConnection.write(byte[], int, int)
> 2003/03/13 16:31:26:812 EST [TRACE] HttpConnection - -enter
> HttpConnection.writeLine()
> 2003/03/13 16:31:26:828 EST [TRACE] PostMethod - -enter
> PostMethod.writeRequestBody(HttpState, HttpConnection)
> 2003/03/13 16:31:26:890 EST [TRACE] HttpConnection - -enter
> HttpConnection.getRequestOutputStream()
> 2003/03/13 16:31:26:890 EST [TRACE] HttpMethod - -enter
> HttpMethodBase.readResponse(HttpState, HttpConnection)
> 2003/03/13 16:31:26:890 EST [TRACE] HttpMethod - -enter
> HttpMethodBase.readStatusLine(HttpState, HttpConnection)
> 2003/03/13 16:31:26:890 EST [TRACE] HttpConnection - -enter
> HttpConnection.readLine()
> 2003/03/13 16:31:26:953 EST [WARN] HttpMethod - -Recoverable exception
> caught when reading response
> 2003/03/13 16:31:26:953 EST [DEBUG] HttpMethod - -Closing the connection.
> 2003/03/13 16:31:26:953 EST [TRACE] HttpConnection - -enter
> HttpConnection.close()
> 2003/03/13 16:31:26:953 EST [TRACE] HttpConnection - -enter
> HttpConnection.closeSockedAndStreams()
> org.apache.commons.httpclient.HttpRecoverableException:
> org.apache.commons.httpclient.HttpRecoverableException: Error in parsing
> the status  line from the response: unable to find line starting with
> "HTTP/"
>   at
> org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1668)
>   at
> org.apache.commons.httpclient.HttpMethodBase.processRequest(HttpMethodBase.java:2322)
>   at
> org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:915)
>   at
> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:557)
>   at
> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:474)
>   at
> com.verizon.wbtt.components.validator.BMEXTest.main(BMEXTest.java:38)
> Exception in thread "main"
> 
> 
> Thanks
> Vikram
> 
> 
> 
> 
> "Oleg Kalnichevski" <[EMAIL PROTECTED]> on 03/13/2003 04:23:31 PM
> 
> Please respond to "Commons HttpClient Project"
><[EMAIL PROTECTED]>
> 
> To:"Commons HttpClient Project"
><[EMAIL PROTECTED]>
> cc:
> Subject:Re: problem with post
> 
> 
> Vikram,
> 
> What version of HttpClient are you using?
> Are you by any chance posing requests through a proxy?
> 
> We'll be able to help if we know a bit more. You'll need to produce wire
> log of HTTP session that causes that exception. Please refer to this
> document for details on logging in HttpClient
> 
> http://jakarta.apache.org/commons/httpclient/logging.html
> 
> Oleg
> 
> 
> On Thu, 2003-03-13 at 22:02, [EMAIL PROTECTED] wrote:
> > Hai,
> >
> > I am trying to execute a post using httpclient and this the message , I
> get
> >
> >  org.apache.commons.httpclient.HttpRecoverableException:
> > org.apache.commons.httpclient.HttpRecoverableException: Error in parsing
> > the status  line from the response: unable to find line starting with
> > "HTTP/"
> >   at
> >
> org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1668)
> 
> >   at
> >
> org.apache.commons.httpclient.HttpMethodBase.processRequest(HttpMethodBase.java:2322)
> 
> >   at
> >
> org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:915)
> 
> >   at
> >
> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:557)
> >   at
> >
> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:474)
> >   at
> > com.verizon.wbtt.components.validator.BMEXTest.main(BMEXTest.java:30)
> > Exception in thread "main"
> >
> > The response is empty.
> > I tried the same post by writnng my own socket program and it works fine.
> >
> > Couls anyone  pls shed light on this.
> >
> > Thanks
> > Vikram
> >
> >
> >
> >
> >
> >
> >
> > -
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> 
> 
> -
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: problem with post

2003-03-13 Thread vikram . x . kondadasula
 - -Recoverable exception
caught when reading response
2003/03/13 16:31:26:953 EST [DEBUG] HttpMethod - -Closing the connection.
2003/03/13 16:31:26:953 EST [TRACE] HttpConnection - -enter
HttpConnection.close()
2003/03/13 16:31:26:953 EST [TRACE] HttpConnection - -enter
HttpConnection.closeSockedAndStreams()
org.apache.commons.httpclient.HttpRecoverableException:
org.apache.commons.httpclient.HttpRecoverableException: Error in parsing
the status  line from the response: unable to find line starting with
"HTTP/"
  at
org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1668)
  at
org.apache.commons.httpclient.HttpMethodBase.processRequest(HttpMethodBase.java:2322)
  at
org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:915)
  at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:557)
  at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:474)
  at
com.verizon.wbtt.components.validator.BMEXTest.main(BMEXTest.java:38)
Exception in thread "main"


Thanks
Vikram




"Oleg Kalnichevski" <[EMAIL PROTECTED]> on 03/13/2003 04:23:31 PM

Please respond to "Commons HttpClient Project"
   <[EMAIL PROTECTED]>

To:"Commons HttpClient Project"
   <[EMAIL PROTECTED]>
cc:
Subject:Re: problem with post


Vikram,

What version of HttpClient are you using?
Are you by any chance posing requests through a proxy?

We'll be able to help if we know a bit more. You'll need to produce wire
log of HTTP session that causes that exception. Please refer to this
document for details on logging in HttpClient

http://jakarta.apache.org/commons/httpclient/logging.html

Oleg


On Thu, 2003-03-13 at 22:02, [EMAIL PROTECTED] wrote:
> Hai,
>
> I am trying to execute a post using httpclient and this the message , I
get
>
>  org.apache.commons.httpclient.HttpRecoverableException:
> org.apache.commons.httpclient.HttpRecoverableException: Error in parsing
> the status  line from the response: unable to find line starting with
> "HTTP/"
>   at
>
org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1668)

>   at
>
org.apache.commons.httpclient.HttpMethodBase.processRequest(HttpMethodBase.java:2322)

>   at
>
org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:915)

>   at
>
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:557)
>   at
>
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:474)
>   at
> com.verizon.wbtt.components.validator.BMEXTest.main(BMEXTest.java:30)
> Exception in thread "main"
>
> The response is empty.
> I tried the same post by writnng my own socket program and it works fine.
>
> Couls anyone  pls shed light on this.
>
> Thanks
> Vikram
>
>
>
>
>
>
>
> -
> To unsubscribe, e-mail:
[EMAIL PROTECTED]
> For additional commands, e-mail:
[EMAIL PROTECTED]
>


-
To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]










-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: problem with post

2003-03-13 Thread Oleg Kalnichevski
Vikram,

What version of HttpClient are you using? 
Are you by any chance posing requests through a proxy? 

We'll be able to help if we know a bit more. You'll need to produce wire
log of HTTP session that causes that exception. Please refer to this
document for details on logging in HttpClient

http://jakarta.apache.org/commons/httpclient/logging.html

Oleg


On Thu, 2003-03-13 at 22:02, [EMAIL PROTECTED] wrote:
> Hai,
> 
> I am trying to execute a post using httpclient and this the message , I get
> 
>  org.apache.commons.httpclient.HttpRecoverableException:
> org.apache.commons.httpclient.HttpRecoverableException: Error in parsing
> the status  line from the response: unable to find line starting with
> "HTTP/"
>   at
> org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1668)
>   at
> org.apache.commons.httpclient.HttpMethodBase.processRequest(HttpMethodBase.java:2322)
>   at
> org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:915)
>   at
> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:557)
>   at
> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:474)
>   at
> com.verizon.wbtt.components.validator.BMEXTest.main(BMEXTest.java:30)
> Exception in thread "main"
> 
> The response is empty.
> I tried the same post by writnng my own socket program and it works fine.
> 
> Couls anyone  pls shed light on this.
> 
> Thanks
> Vikram
> 
> 
> 
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem with Post

2003-02-10 Thread Jeffrey Dever
The documentation on the website is for the latest code in cvs head. 
You can use addParameter(name, value) insetad for now.

There are other reasons this code won't compile too ...


Tom Samplonius wrote:

 I'm having what is likely a simple problem posting.  Code snippet:


...
NameValuePair userPass[];
userPass[0] = new NameValuePair("userName", "user");
userPass[1] = new NameValuePair("password", "pass");
PostMethod post = new PostMethod("http://localhost:8080/login";);
post.setRequestBody(userPass);
...

 This doesn't even compile, because the compiler says setRequestBody is
an unknown method.

 All, the HttpClient examples use setRequestBody with stream, not
NameValuePair[].  Perhaps this method has been removed?

Tom








-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]