21 January 2010

Handling HTTP POST requests in Livelink, Part One

I recently found myself needing to handle HTTP POST requests in Livelink. I could control the Livelink URL the request was sent to, but I could not control the POST body. There were two parts to the challenge, and one had a happy answer, whilst the other did not.

First, I created a new Livelink module and orphaned a request handler. In this particular case, I orphaned WebDsp:WebDsp Root:RequestHandler because I did not want or need a Livelink login. I then tested submitting the HTTP POST using a form like this one:

<form method="POST"
action="/Livelink/livelink.exe?func=myhandler">

To my surprise, the request was not sent to my handler. I was instead sent to the Livelink login form with a nextURL pointing at func=llworkspace, i.e., the default request handler.

It turns out that Livelink ignores query parameters in the URL on a POST request. When my request got to the Dispatch function, there was no visible "func" parameter, so the default request handler was called.

The solution is to add a PathInfoHandler, and embed the request for myhandler in the path info:

<form method="POST"
action="/Livelink/livelink.exe/mypathhandler">

I orphaned WebDsp:WebDsp Root:PathInfoHandler and overrode the 0 Setup script to contain:

.fReplacementArgs = {{ 'func', 'myhandler' }}
.fPathInfoName = 'mypathhandler'

So now Livelink sees the /mypathhandler in the URL path info, and infers a func=myhandler query parameter from that. (The use of two different names is completely optional, and I think undesirable. I have used them only to make the distinction clear.)

30 comments:

Jona said...

Do you remember the time when Livelink was the only web-based collaboration? Hahah, nostalgic! Life has been so much easy earlier when I was a student. There was no extra mile required. Students now have to put in a lot of effort. I am saying this because I provide the best IT dissertation proofreading services in UK, so I know it ugh!

Thomas More said...

I think some little things are worth knowing. I provide an Article Writing Service to businesses and individuals, and I have a website. I will share this post with my developer - maybe it’s something of his interest.

isabellaamelia said...

Thank you so much for sharing these useful HTTP codes, I am a British Essay Writer and don't know much about these HTTP or HTML codes. I never learn development but now I started to learn the fundamentals of coding for my job.

kate said...

Thanks for sharing these codes. I also want to share wayfair discount code. I hope you all like it.

Susan Wray said...

When sending HTTP requests, you can pick what technique to utilize (GET, POST, and so forth) and may incorporate a body, headers, connections, question boundaries, structure boundaries and URI boundaries.
The information sent to the server with POST is put away in the body of the HTTP demand:
Example;
POST/test/demo_form.php HTTP/1.1
Have: xyz.com
name1=value1&name2=value2
Best Dissertation Proposal Writing Services in UK

MichelAnthony said...

This is the first time that I visit here. I found so many exciting matters in this particular blog, One thing I would like to request you that pls keep posting such type of informative blog.
Site: https://fortunejackets.com/product/star-wars-tie-fighter-jacket

Ariel Wilson said...

I made a request to write my dissertation online a couple of weeks ago. I don’t know if it passed anyone's sight or there’s a different process that is supposed to be followed. I have not heard anything from this site yet and I am worried. Please let me know as I do not have much time left. I need the help to compose the dissertation, I would also provide my input but assistance is required.

Emma Watson said...

Get all the latest roseland furniture discount code and enjoy 30% Off discounts promo and voucher codes to save up to 10% off on Oak Solid Wood Furniture at Roseland Furniture coupon.

billygiil said...

There are even times when Ifeel so down but I will feel better right after checking your blogs. You have made me feel so good about myself all the time and please know that I do appreciate everything that you have.well. Keep writing such amazing sweatshirts for women stuff alwaysI will always let you and your words jewellery online

Douglas Davis said...

Students often struggle to find a custom academic Poster design service that can fulfill their requirements. What is your opinion about it?

zoeymary80 said...


If you are a student and you reside in Bahrain, you ought to get in touch with academic help bahrain. It is a sensible spot to receive assistance, so why are you holding off?

julia said...

I am happy to read this post. This is really impressive information for students. Thanks for sharing your content with us. Now it's time to avail Diy Shutters for more information.

Rickey Tanner said...

It's such a fantastic post about HTTP post. It's an informative and interesting article. Keep sharing your content with us. Now it's time to get Vfix services https://www.vfixphonesandtech.com/ for more information.

John Hardy said...

Such a great blog. I got a lot of information in this article. I hope you will share more good updates. Now it's time to avail HYDRATING SUN SCREEN LOTION for more information.

Patricia Allison said...

That was a really cool insight of that time!
Regards: Dallas Senior Moving Services

Zayn Khaled said...

The name of the Surah Mulk in Hindi verse collection that makes up the 67th chapter of the Quran is Surah Mulk, and it consists of a total of 30 verses. It places an emphasis not only on the power and sovereignty of Allah, but also on the inevitability of the Day of Judgment coming in the future. This Surah provides an explanation of the greatness and mercy of Allah, who is the one who is responsible for the creation of the heavens, the earth, and everything that exists between the two. In addition to this, it highlights the significance of performing good deeds as well as the adverse effects of performing bad deeds. In this Surah, Muslims are encouraged to pray to Allah for forgiveness and mercy, as well as to reflect on the evidence that demonstrates Allah's superiority over the universe.

catherine said...

Ready to take the next step and change your name legally? The Deed Poll Office is here to help. And with their latest deed poll office coupon code, you can save even more on their reliable and hassle-free name change services.

Cheap essay writers said...

On the contrary, the circumpolar Arctic emerges as a highly precarious region, presenting a compelling argument against the aforementioned stance. According to Huebert, Russia adopts a political strategy akin to concealing an iron fist within a velvet glove, evident through its progressively "escalating" military actions in the North, including the Chechen conflict and strategic bomber flights over the Arctic and worldwide I need help with my homework. Additionally, Russia's deteriorating economic moves in the area and globally add to the mounting concerns. Notably, there are locations near the North Pole serving as missile test sites and nuclear submarine routes, alongside collaborative agreements. Moreover, plans for a formidable military re-modernization under President Vladimir Putin's ambitious vision indicate an attempt to rectify the country's armed forces post-Cold War. These collective actions raise questions about whether Russia, akin to a reawakening bear, seeks to assert dominance and potentially engage in a confrontation with the United States in the Arctic.

Thomas More said...

Welcome! I'm Thomas, an expert in online class support, ready to assist you with your academic journey. Connect with me through Take My Online Class for personalized assistance.

Diane Sawyer said...
This comment has been removed by the author.
Diane Sawyer said...

Thank you so much for sharing these useful HTTP codes, I am a dedicated professional online class taker, so if you want to Hire Someone To Do Online Class you are in the right place, on the other hand I don't have much knowledge about HTTP but I enjoy staying up-to-date with the latest trends in online education and technology for further enhance my ability

alicia said...

The Livelink URL to which the request was routed was under my control, but I had no control over the POST body. The challenge featured two components, one of which had a satisfactory online muscle growth supplements USA resolution and the other did not.

Douglas Davis said...

Handling HTTP POST requests in Livelink is a very important topic, and I'm glad that you're covering it in your blog series. I've found that POST requests are often the most challenging type of HTTP request to handle, but they're also very important for many Livelink applications. I'm also curious to know if you've ever used the 405479-001 - HP 300-Watts ATX 100-240V AC 24-Pin Power Supply with Active PFC for DC5100 Desktop System in any of your Livelink projects. If so, I'd love to hear about your experience.

Zayn Khaled said...

Choosing a name for your baby girl is a joyous and thoughtful endeavor, and within the realm of Muslim Girl Names, you'll find a world of beauty, tradition, and meaning. Whether you're drawn to timeless Islamic names like Amina and Fatima or contemporary choices like Aisha and Zara, each name carries a story deeply rooted in faith and culture. These names embody values, hopes, and aspirations, reflecting the rich heritage of Islam. In this exploration of Muslim girl names, we'll delve into the captivating spectrum of options, helping you discover the perfect name that resonates with your family, faith, and the bright future of your daughter.

Courier-Plus said...

You are in the right place, on the other hand I don't have much knowledge about HTTP but I enjoy staying up-to-date with the latest trends in online education and technology for further enhance my ability.. pallets delivery montreal

Aneela said...

Whether you're drawn to timeless Islamic names like Amina and Fatima or contemporary choices like Aisha and Zara, each name carries a story deeply rooted in faith and culture. Conference Hall

alicia said...

nice professional services

Harry kevin said...

It seems like your attempt to handle HTTP POST requests in Livelink encountered an unexpected redirection to the Livelink login form, specifically pointing at the default request handler. This behavior might indicate a restriction or configuration in Livelink that overrides custom handlers for certain actions. If face difficulty in Btec cource consider Btec Assignment We are committed to your success. Our services come with a satisfaction guarantee, offering revisions until you are completely satisfied with the final product.

James Anderson said...

Hey there!

Just read your article on "Handling HTTP POST requests in Livelink, Part One," and I have to say, it's super helpful! As someone diving into the world of web development, understanding how to handle HTTP POST requests is crucial, and your breakdown of the process was clear and easy to follow.

I particularly appreciated the step-by-step instructions and code snippets you provided. It really demystified the concept for me and gave me the confidence to tackle it in my own projects.

Oh, and by the way, your mention of genuine women leather jackets got me thinking about adding some style to my wardrobe! Looking forward to part two! Keep up the great work! ����‍��

Chloe carlo said...

When it comes to academic excellence, partnering with professional assignment writers uk can significantly enhance your academic journey. These experts bring specialized skills and knowledge to ensure your assignments meet rigorous standards and are delivered on time.