ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Host field in HTTPRequestHeader

Post new topic  Reply to topic
 Host field in HTTPRequestHeader « View previous topic :: View next topic » 
Author Message
ydsk
PostPosted: Tue Aug 29, 2006 10:50 am    Post subject: Host field in HTTPRequestHeader Reply with quote

Chevalier

Joined: 23 May 2005
Posts: 410

I am reading the URL from a database table so I am populating the Host field with a hardcoded value. The database table was created by customer and I have no control over it.

There is a possibility that the Host name hardcoded is different from the actual host name because the URL is READ from a database table within the msgflow and is assigned via the ESQL statement in a compute node just before the HTTPRequest node like:

'SET OutputLocalEnvironment.Destination.HTTP.RequestURL = character String read from database ... '.

Can Hursley guys or someone please tell me if broker would over-write the value of Host with the value from actual URL before sending the message to call the external webservice ?

Thanks.
ydsk.


Last edited by ydsk on Tue Aug 29, 2006 7:26 pm; edited 1 time in total
Back to top
View user's profile Send private message
vennela
PostPosted: Tue Aug 29, 2006 2:00 pm    Post subject: Re: Host field in HTTPRequestHeader Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

ydsk wrote:

Can Hursley guys or someone please tell me if broker would actually over-write the value of Host with the value from URL before sending the message to call the external webservice ?

Thanks.
ydsk.

AFAIK, yes
Back to top
View user's profile Send private message Send e-mail Visit poster's website
ydsk
PostPosted: Tue Aug 29, 2006 5:06 pm    Post subject: Reply with quote

Chevalier

Joined: 23 May 2005
Posts: 410

Hi Vennela,

Thanks for posting. I was just trying to see if Hursley guys in the forum can confirm this.

I read in some other post by a Hursley guy that broker over-writes some headers that we manually populate before sending the message to webservice via HTTPRequest node but I don't know if it over-writes Host for sure.

Thanks.
ydsk.
Back to top
View user's profile Send private message
jbanoop
PostPosted: Tue Aug 29, 2006 10:50 pm    Post subject: Reply with quote

Chevalier

Joined: 17 Sep 2005
Posts: 401
Location: SC

We are doing it with version 5.
The hostname if hardcoded in esql and the create default Http headers on the Http request node is checked, the host name is not overwritten.

Also isnt the host name in the header supposed to be the name of the host where the request is originating from ?

Edit: you could use tcptrace or somthing like that to actually view the header and payload of your http request message to confirm.
http://www.pocketsoap.com/tcptrace/

Regards,
Anoop
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Host field in HTTPRequestHeader
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.