webMethods

webMethods

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

How to configure pub.client:http headers for Cookies when need to connect to another page

  • 1.  How to configure pub.client:http headers for Cookies when need to connect to another page

    Posted Fri November 15, 2013 08:24 AM

    Dear Forum,

    I have service which has to grab page content from another server for further processing.
    The page requires login, but it accept cookies in order to skip the login.

    I would like to use pub.client:http, however I am not able to configure “headers” document for Cookies.

    I know that as client I have to setup Cookies: name=user_account; … and further parameters.

    If I use linux command wget (by ps.util.system:executeOSCommand) with syntax wget --user-agent=WGET --load-cookies=/tmp/rudo.cookie --no-proxy http:// i am getting proper content.

    Even if “headers” for the service was setup with similar way:
    User-Agent=WGET
    Cookies=name=user_account; domain=; path=/webapps; Secure=FALSE; HttpOnly=FALSE; Expires=1384608000; <auth. hash>

    I am getting content of login page.

    Have you anyone experience with build such configuration?

    Many thanks
    Rudo


    #webMethods
    #webmethods-Protocol-and-Transport
    #Integration-Server-and-ESB


  • 2.  RE: How to configure pub.client:http headers for Cookies when need to connect to another page

    Posted Fri July 22, 2016 05:18 PM

    Hey Rudolph,

    Did you get a solution for your above question?

    Thanks,
    Veera


    #webmethods-Protocol-and-Transport
    #webMethods
    #Integration-Server-and-ESB