Skip to main content
Question

How to use HTTPCaller to upload a file?


brandonguo
Contributor
Forum|alt.badge.img+3

New to the API world. I am trying to use HTTPCaller to auto-attach a pdf file as a response.

I managed to use HTTPCaller to get all requests and auto-generate a response. However, I am unsure how to physically upload the file through the POST method.

Here is the link to the API document: Enquiries API (1100.com.au)

My HTTPCaller parameters:

imageI keep getting: "HTTPCaller_4 (HTTPFactory): [1]: HTTP transfer error: Stream error in the HTTP/2 framing layer" error code.

 

 

2 replies

f.kemminje
Contributor
Forum|alt.badge.img+11
  • Contributor
  • January 10, 2023

Have you ever used Postman app or web application? whether it was successful or not

Debug with Telerik Fiddler. you will get The precise url string to upload the files.


brandonguo
Contributor
Forum|alt.badge.img+3
  • Author
  • Contributor
  • January 10, 2023
f.kemminje wrote:

Have you ever used Postman app or web application? whether it was successful or not

Debug with Telerik Fiddler. you will get The precise url string to upload the files.

No, I haven't, I will give it a try. I think I get confused with the "Files" array and the actual reply I want to upload. After converting pdf to HTML code and packaging it into JSON, all works. Thank you.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings