Author |
Message
|
rajamram1976 |
Posted: Tue May 29, 2012 9:57 pm Post subject: HTTP Request Node in WMB v8 |
|
|
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 |
|
 |
exerk |
Posted: Wed May 30, 2012 12:01 am Post subject: |
|
|
 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 |
|
 |
smdavies99 |
Posted: Wed May 30, 2012 12:10 am Post subject: Re: HTTP Request Node in WMB v8 |
|
|
 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 |
|
 |
rajamram1976 |
Posted: Wed May 30, 2012 1:15 am Post subject: |
|
|
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 |
|
 |
kimbert |
Posted: Wed May 30, 2012 1:26 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
|
Back to top |
|
 |
smdavies99 |
Posted: Wed May 30, 2012 2:06 am Post subject: |
|
|
 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 |
|
 |
mgk |
Posted: Wed May 30, 2012 3:04 am Post subject: |
|
|
 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 |
|
 |
rajamram1976 |
Posted: Thu May 31, 2012 12:15 am Post subject: |
|
|
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 |
|
 |
mqjeff |
Posted: Thu May 31, 2012 1:25 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
ESQL has base64 encoding methods these days, if I recall correctly. |
|
Back to top |
|
 |
|