POSTing payload


#1

I’m trying to crawl a site that first requires a POST request with some form data. I am using the following code to add the initial request:

await resultsQueue.addRequest({
url: ‘https://webhook.site/d0ff02b2-c05b-4b57-a760-3ac20fae35dd’,
method: ‘POST’,
payload: “foo=bar”
});

when i look at the request that actually gets sent (using webhook.site as a test to see what the request looks like on the receiving end) the request indeed comes in as a POST but there are no form values being transmitted. Any help would be appreciated.


#2

Let’s discuss this issue on https://github.com/apifytech/apify-js/issues/338