Skip to content
Advertisement

Tag: postman

Need to pass dynamic values inside CURLOPT_POSTFIELDS

I have to make a post request and have done the same using postman for testing. Now, the code base is using php and I have never used php ever before. Upon checking the code section in postman, I got this: The problem is that I have to pass dynamic values instead of firstname, lastname4 etc. The values I have

Can you send text and file for the same param?

I am trying to send a request to my PHP Laravel API that would store as “content” both files and text, however when i send the POST request, only the file path gets saved in the database and the request returns an array that is empty, is the problem from postman or my API? Here is the code for my

Advertisement