Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Using tHttpRequest Component basics

Hello and thanks in advance.
I am not exactly sure how to use the tHttpRequest Component for Method 0683p000009MAB6.pngOST. I checked the Talend User Documentation (F1), but it did not have the needed details about using POST.
Each row of my input data has a preformatted querystring or postdata (i.e. field1=1111&field2=1111&field3=1111&field4=1111)
I can't find any documentation on how to get the this string into the URI Field, but I see that there is a field for "post parameters from file."
So, my questions about this component are:
1. How can I use the tHttpRequest component to send 1 request per row?
1. Do files need to be created to pass the Post information or can it use the incoming ROW?
2. How should the File be formatted with POST information?
3. Is the file for 1 httpRequest 0683p000009MAB6.pngOST or can it hold put multiple httpRequest 0683p000009MAB6.pngOST Data. Do I need to create a new file for each httpRequest 0683p000009MAB6.pngOST?
4. Do I need to specify the POST fields in a special way, or should they be concantenated into a formatted "querysting" (i.e field1=1111&field2=1111&field3=1111&field4=1111)
Can you show me the proper way to setup the tHttpRequest Component for Method 0683p000009MAB6.pngOST for multiple rows of posting information?
Thanks again.
Labels (2)
3 Replies
jkrfs
Creator
Creator

1) Assign your parameter to a context before using tHttpRequest in tJavaRow or similar component:
context.currentParameter = field1=1111;
Then in the URI of the component have this:
"localhost:8080/myApp/controller?" + context.currentParameter
2-4) Never used the file feature, can't help here.
Anonymous
Not applicable
Author

I have the same problem here. How can I post XML content via tHttpRequest? Is it posible? I test it by saving the XML content into a file and read it by "Post parameters from file". But the server gets empty content. The XML content is not a soap or xmlrpc request so I can't use this components.
Is tHttpRequest the right solution? Can anyone give a working example, please?
Anonymous
Not applicable
Author

Have the same issue. Has anyone solved it or have any work around?