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 » HTTP Request Node in WMB v8

Post new topic  Reply to topic
 HTTP Request Node in WMB v8 « View previous topic :: View next topic » 
Author Message
rajamram1976
PostPosted: Tue May 29, 2012 9:57 pm    Post subject: HTTP Request Node in WMB v8 Reply with quote

Newbie

Joined: 29 May 2012
Posts: 3

Hi,

I'm trying to use HTTPRequest node in WMB v8. Since, I need to use Http proxy authentication. Does anyone know how to use proxy authentication?

I'm also trying to use HTTPHeader to add username and password before usng HttpRequest node - still it fails. Any help appreciated
Back to top
View user's profile Send private message
exerk
PostPosted: Wed May 30, 2012 12:01 am    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

Moving this to the Broker forum, where it belongs...
_________________
It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys.
Back to top
View user's profile Send private message
smdavies99
PostPosted: Wed May 30, 2012 12:10 am    Post subject: Re: HTTP Request Node in WMB v8 Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

rajamram1976 wrote:

I'm also trying to use HTTPHeader to add username and password before usng HttpRequest node - still it fails. Any help appreciated


How is it failing?
What does the HTTPHeader look like after you have added the UserName/Password to it?

A little (or a lot) more detail would help us understand the nature of the problem a whole lot better.
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
rajamram1976
PostPosted: Wed May 30, 2012 1:15 am    Post subject: Reply with quote

Newbie

Joined: 29 May 2012
Posts: 3

I'm getting following error , when i make HTTPRequest to external URL

HTTP/1.1 407 Proxy Authentication Required
Proxy-Authenticate: NTLM
Proxy-Authenticate: BASIC realm="xxxxxxxxxx"
Cache-Control: no-cache
Pragma: no-cache
Content-Type: text/html; charset=utf-8
Proxy-Connection: close
Set-Cookie: BCSI-CS-FF531201C7548663=2; Path=/
Connection: close
Content-Length: 813

Using HTTP Header, Under HTTP Request properties.
Adding below variable
Name=Proxy-Authorization
Type=Value
Value="Proxy-Authorization" ":" domain\myuserid:mypassword
Back to top
View user's profile Send private message
kimbert
PostPosted: Wed May 30, 2012 1:26 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

I may be way off the mark here, but I wonder whether this is what you need:
http://publib.boulder.ibm.com/infocenter/wmbhelp/v8r0m0/topic/com.ibm.etools.mft.doc/ac69300_.htm

There's even a pattern for it:
http://publib.boulder.ibm.com/infocenter/wmbhelp/v8r0m0/topic/com.ibm.etools.mft.pattern.sv.doc/sv/sp/overview.htm
Back to top
View user's profile Send private message
smdavies99
PostPosted: Wed May 30, 2012 2:06 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

I Think the OP is trying to make a HTTP Request to an external site but there is a Proxy Server getting in the way.
The login is for the proxy server.
This is where you have to go via the company HTTP proxy server to get to the real internet.

If I were encountering this I'd be looking at talking with the Network and Security people and seeing if the systems where this would be used in production would also need this sort of login. If they don't then I'd ask for the proxy for this particular URL to be switched off so that the deveelopment can be completed.
After all, the OP has a legitimate business case (well they should have)
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
mgk
PostPosted: Wed May 30, 2012 3:04 am    Post subject: Reply with quote

Padawan

Joined: 31 Jul 2003
Posts: 1642

This is the problem:

Quote:
Proxy-Authenticate: NTLM


The HTTPRequest node supports Basic-Auth, not NTLM.

Regards,
_________________
MGK
The postings I make on this site are my own and don't necessarily represent IBM's positions, strategies or opinions.
Back to top
View user's profile Send private message
rajamram1976
PostPosted: Thu May 31, 2012 12:15 am    Post subject: Reply with quote

Newbie

Joined: 29 May 2012
Posts: 3

Thanks to all.

Now issue solved. I added following header in the HTTP Header Node -> HTTPRequest tab

Name: Proxy-Authorization
Type : Value
Value : Basic <<My credentials converted to base64 encode>>

i provided my credential as "domain/myusername:mypassword" to www.base64convertor.com
Back to top
View user's profile Send private message
mqjeff
PostPosted: Thu May 31, 2012 1:25 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

ESQL has base64 encoding methods these days, if I recall correctly.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » HTTP Request Node in WMB v8
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.