473,385 Members | 2,013 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How to remove HTTP Header [Expect: 100-continue]

Hy there

I have a Web Services written in Java, running on Tomcat. The Client is
written in C#. When i monitor the request/Response with TCPMon (included in
Tomcat) i can observer the following sequence:

********************************************
CLIENT:: Request
********************************************

POST /axis/services/AgencyGatewayPort HTTP/1.1
User-Agent: Axis/1.1
Authorization: Basic bW1hX3VzZXIxOm1tYV9wd2Qx
Cache-Control: no-cache
Pragma: no-cache
Content-Type: text/xml; charset=utf-8
SOAPAction: "http://net.guardean.wsdl/AgPerformRequest"
Content-Length: 639
Expect: 100-continue
Connection: Keep-Alive
Host: localhost

<?xml version="1.0" encoding="utf-8"?>
....
********************************************
SERVER:: Response
********************************************
HTTP/1.1 100 Continue

HTTP/1.1 200 OK
Set-Cookie: JSESSIONID=8E01AF57B2FF5BBFB22BF6E4BEA65FBB; Path=/axis
Content-Type: text/xml;charset=utf-8
Transfer-Encoding: chunked
Date: Fri, 08 Apr 2005 14:07:59 GMT
Server: Apache-Coyote/1.1

2000
<?xml version="1.0" encoding="UTF-8"?>
....
After the WS-call i don't have access to my object. All object are set to
null.
I have tried to manipulate the HTTP-Header (remove Expect: 100-continue).
But it's not possible to remove this header. In the documentation i've found,
that some header-elements could not be changed.

In my oppinion the response from Tomcat look a little bit strange. My
question is: Is it possible to change my HTTP-Header? I have another sample
written in Java and this sample does work. The Java Client Header look like
this:

********************************************
Java CLIENT:: Request
********************************************
POST /axis/services/AgencyGatewayPort HTTP/1.0
Content-Type: text/xml; charset=utf-8
Accept: application/soap+xml, application/dime, multipart/related, text/*
User-Agent: Axis/1.1
Host: localhost
Cache-Control: no-cache
Pragma: no-cache
SOAPAction: "http://net.guardean.wsdl/AgPerformRequest"
Content-Length: 926
Authorization: Basic bW1hX3VzZXIxOm1tYV9wd2Qx

Thakns in advance!


Nov 23 '05 #1
3 14499
Is the response coming in on one trip or 2?

Normally (in other cases such as redirects) you see the client getting a
RESPONSE to redirect, then client makes another requests and gets a 200 Ok.
Is it possible these 2 are separate responses? You get 100, then send
request again and get 200? What else was in the body of the 100 response?

Alex

"Christian Lutz" <Christian Lu**@discussions.microsoft.com> wrote in message
news:D0**********************************@microsof t.com...
Hy there

I have a Web Services written in Java, running on Tomcat. The Client is
written in C#. When i monitor the request/Response with TCPMon (included
in
Tomcat) i can observer the following sequence:

********************************************
CLIENT:: Request
********************************************

POST /axis/services/AgencyGatewayPort HTTP/1.1
User-Agent: Axis/1.1
Authorization: Basic bW1hX3VzZXIxOm1tYV9wd2Qx
Cache-Control: no-cache
Pragma: no-cache
Content-Type: text/xml; charset=utf-8
SOAPAction: "http://net.guardean.wsdl/AgPerformRequest"
Content-Length: 639
Expect: 100-continue
Connection: Keep-Alive
Host: localhost

<?xml version="1.0" encoding="utf-8"?>
...
********************************************
SERVER:: Response
********************************************
HTTP/1.1 100 Continue

HTTP/1.1 200 OK
Set-Cookie: JSESSIONID=8E01AF57B2FF5BBFB22BF6E4BEA65FBB; Path=/axis
Content-Type: text/xml;charset=utf-8
Transfer-Encoding: chunked
Date: Fri, 08 Apr 2005 14:07:59 GMT
Server: Apache-Coyote/1.1

2000
<?xml version="1.0" encoding="UTF-8"?>
...
After the WS-call i don't have access to my object. All object are set to
null.
I have tried to manipulate the HTTP-Header (remove Expect: 100-continue).
But it's not possible to remove this header. In the documentation i've
found,
that some header-elements could not be changed.

In my oppinion the response from Tomcat look a little bit strange. My
question is: Is it possible to change my HTTP-Header? I have another
sample
written in Java and this sample does work. The Java Client Header look
like
this:

********************************************
Java CLIENT:: Request
********************************************
POST /axis/services/AgencyGatewayPort HTTP/1.0
Content-Type: text/xml; charset=utf-8
Accept: application/soap+xml, application/dime, multipart/related, text/*
User-Agent: Axis/1.1
Host: localhost
Cache-Control: no-cache
Pragma: no-cache
SOAPAction: "http://net.guardean.wsdl/AgPerformRequest"
Content-Length: 926
Authorization: Basic bW1hX3VzZXIxOm1tYV9wd2Qx

Thakns in advance!

Nov 23 '05 #2
The Response is coming in one trip. The answer from the server you see is one
response. The server sends 100 and the 200 response at once.

cu luc


"Alex Passos" wrote:
Is the response coming in on one trip or 2?

Normally (in other cases such as redirects) you see the client getting a
RESPONSE to redirect, then client makes another requests and gets a 200 Ok.
Is it possible these 2 are separate responses? You get 100, then send
request again and get 200? What else was in the body of the 100 response?

Alex

"Christian Lutz" <Christian Lu**@discussions.microsoft.com> wrote in message
news:D0**********************************@microsof t.com...
Hy there

I have a Web Services written in Java, running on Tomcat. The Client is
written in C#. When i monitor the request/Response with TCPMon (included
in
Tomcat) i can observer the following sequence:

********************************************
CLIENT:: Request
********************************************

POST /axis/services/AgencyGatewayPort HTTP/1.1
User-Agent: Axis/1.1
Authorization: Basic bW1hX3VzZXIxOm1tYV9wd2Qx
Cache-Control: no-cache
Pragma: no-cache
Content-Type: text/xml; charset=utf-8
SOAPAction: "http://net.guardean.wsdl/AgPerformRequest"
Content-Length: 639
Expect: 100-continue
Connection: Keep-Alive
Host: localhost

<?xml version="1.0" encoding="utf-8"?>
...
********************************************
SERVER:: Response
********************************************
HTTP/1.1 100 Continue

HTTP/1.1 200 OK
Set-Cookie: JSESSIONID=8E01AF57B2FF5BBFB22BF6E4BEA65FBB; Path=/axis
Content-Type: text/xml;charset=utf-8
Transfer-Encoding: chunked
Date: Fri, 08 Apr 2005 14:07:59 GMT
Server: Apache-Coyote/1.1

2000
<?xml version="1.0" encoding="UTF-8"?>
...
After the WS-call i don't have access to my object. All object are set to
null.
I have tried to manipulate the HTTP-Header (remove Expect: 100-continue).
But it's not possible to remove this header. In the documentation i've
found,
that some header-elements could not be changed.

In my oppinion the response from Tomcat look a little bit strange. My
question is: Is it possible to change my HTTP-Header? I have another
sample
written in Java and this sample does work. The Java Client Header look
like
this:

********************************************
Java CLIENT:: Request
********************************************
POST /axis/services/AgencyGatewayPort HTTP/1.0
Content-Type: text/xml; charset=utf-8
Accept: application/soap+xml, application/dime, multipart/related, text/*
User-Agent: Axis/1.1
Host: localhost
Cache-Control: no-cache
Pragma: no-cache
SOAPAction: "http://net.guardean.wsdl/AgPerformRequest"
Content-Length: 926
Authorization: Basic bW1hX3VzZXIxOm1tYV9wd2Qx

Thakns in advance!


Nov 23 '05 #3
Christian Lutz wrote:
The Response is coming in one trip. The answer from the server you see is one
response. The server sends 100 and the 200 response at once.

cu luc


"Alex Passos" wrote:

Is the response coming in on one trip or 2?

Normally (in other cases such as redirects) you see the client getting a
RESPONSE to redirect, then client makes another requests and gets a 200 Ok.
Is it possible these 2 are separate responses? You get 100, then send
request again and get 200? What else was in the body of the 100 response?

Alex

"Christian Lutz" <Christian Lu**@discussions.microsoft.com> wrote in message
news:D0**********************************@micros oft.com...
Hy there

I have a Web Services written in Java, running on Tomcat. The Client is
written in C#. When i monitor the request/Response with TCPMon (included
in
Tomcat) i can observer the following sequence:

********************************************
CLIENT:: Request
********************************************

POST /axis/services/AgencyGatewayPort HTTP/1.1
User-Agent: Axis/1.1
Authorization: Basic bW1hX3VzZXIxOm1tYV9wd2Qx
Cache-Control: no-cache
Pragma: no-cache
Content-Type: text/xml; charset=utf-8
SOAPAction: "http://net.guardean.wsdl/AgPerformRequest"
Content-Length: 639
Expect: 100-continue
Connection: Keep-Alive
Host: localhost

<?xml version="1.0" encoding="utf-8"?>
...
********************************************
SERVER:: Response
********************************************
HTTP/1.1 100 Continue

HTTP/1.1 200 OK
Set-Cookie: JSESSIONID=8E01AF57B2FF5BBFB22BF6E4BEA65FBB; Path=/axis
Content-Type: text/xml;charset=utf-8
Transfer-Encoding: chunked
Date: Fri, 08 Apr 2005 14:07:59 GMT
Server: Apache-Coyote/1.1

2000
<?xml version="1.0" encoding="UTF-8"?>
...
After the WS-call i don't have access to my object. All object are set to
null.
I have tried to manipulate the HTTP-Header (remove Expect: 100-continue).
But it's not possible to remove this header. In the documentation i've
found,
that some header-elements could not be changed.

In my oppinion the response from Tomcat look a little bit strange. My
question is: Is it possible to change my HTTP-Header? I have another
sample
written in Java and this sample does work. The Java Client Header look
like
this:

********************************************
Java CLIENT:: Request
********************************************
POST /axis/services/AgencyGatewayPort HTTP/1.0
Content-Type: text/xml; charset=utf-8
Accept: application/soap+xml, application/dime, multipart/related, text/*
User-Agent: Axis/1.1
Host: localhost
Cache-Control: no-cache
Pragma: no-cache
SOAPAction: "http://net.guardean.wsdl/AgPerformRequest"
Content-Length: 926
Authorization: Basic bW1hX3VzZXIxOm1tYV9wd2Qx

Thakns in advance!



You could try using HTTP 1.0 instead of 1.1. I don't know how to achieve
this, haven't programmed in Java/Tomcat for quite a long now. Probably
there is some client side API for choosing HTTP version, or you can
reconfigure the server to use only HTTP 1.0.

Best regards
Rafal Gwizdala
Nov 23 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Roberto | last post by:
Hi everyone, I'm new here... I have a frameset header/contents. It's necessary to force the header's scrollbar to be visible to preserve the alignment between the two frames (see...
2
by: Thomas R. Hummel | last post by:
Hello, I am currently working on a monthly load process with a datamart. I originally designed the tables in a normalized fashion with the idea that I would denormalize as needed once I got an...
31
by: Extremest | last post by:
I have a loop that is set to run as long as the arraylist is > 0. at the beginning of this loop I grab the first object and then remove it. I then go into another loop that checks to see if there...
10
by: pamelafluente | last post by:
Hi I have a sorted list with several thousands items. In my case, but this is not important, objects are stored only in Keys, Values are all Nothing. Several of the stored objects (might be a...
31
by: Sarita | last post by:
Hello, this might sound stupid, but I got a really nice homepage template which unfortunately is a 3-Column Fixed Width CSS format. Now I don't have any content for the right column and would...
11
by: Richard Maher | last post by:
Hi, I have read many of the copius entries on the subject of IE performance (or the lack thereof) when populating Select Lists. I don't mind the insert performance so much, (I get 100x120byte...
2
by: Cliff72 | last post by:
I'm creating a database that will be uploading some text files into an access table. The problem is that the text files have a header which messes up my import specs. so what i have had to do is to...
0
by: Event Horizon | last post by:
Hi, I'm trying to add an simple upload applet to shopping cart script. My new applet form sends all needed post fields ( quantity, product, etc... ) but the "file" post field is hardcoded in...
6
by: Romulo NF | last post by:
Greetings again to everyone, Im back to show this grid componenet i´ve developed. With this grid you can show the data like a normal table, remove the rows that you need, add rows, import data,...
3
by: junkchiu | last post by:
want to remove "content" between two corresponding tags. What's the best way of doing it? I want to remove contents between <SEC-HEADER> and <table> tags. I have different tags, and I want to remove...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.