How to send HTTP Resquest with Auth Data
# crawlee-js
a
message has been deleted
e
Hi, I'm trying to send HTTP requests with basic authentication data, I need to send a post request with user and pasword fields. I created a new RequestOptions instance but can't find where to add user and pasword fields for it to be sent as a request on the crawler. Please Help!
m
If you're using Basic Authentication, you typically don't send the username and password as POST body fields. Instead, they're sent in the Authorization header (Basic ). If you share which crawler/library you're using (Apify, Crawlee, Playwright, etc.) and a snippet of how you're creating RequestOptions, I can show you the correct way to configure it. @eneiromatos
3 Views