Hej
Czy możecie mi podpowiedzieć jak można wysłać requesta w celu rejestracji użytkownika przez postmana na podstawie kodu poniżej
POST /register/ HTTP/2
Host: test.com
Cookie: PHPSESSID=325706928584a1d5e2204250081a0a7e; test-age-confirmation=true; test-cookie-policy=true; va6uyAb=AABCVDSFAYKCS7BO8WfttqzJGSDGDSdjSsxBZcLDPrrZHP_rTJDO5w_3o-gW; loginSuccesDialogClosed=true; ss_enduser_cookie|18160538d0=5ec92199-fb58-47d0-9c8e-77807e4ec3f2; redirectReferer=register
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:103.0) Gecko/20100101 Firefox/103.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Content-Type: application/x-www-form-urlencoded
Content-Length: 1730
Origin: https://test.com
Referer: https://test.com/register/
Upgrade-Insecure-Requests: 1
Sec-Fetch-Dest: document
Sec-Fetch-Mode: navigate
Sec-Fetch-Site: same-origin
Sec-Fetch-User: ?1
Te: trailers
first_name=faketwo&last_name=faketwo&email=youremail@yourdomain.com&password=yourpassword&phone_number=2025550166
Domker
(Domker)
#2
Spróbuj curl
-em:
curl -X POST "https://test.com/register" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Host: test.com" \
-H "Cookie: PHPSESSID=325706928584a1d5e2204250081a0a7e; test-age-confirmation=true; test-cookie-policy=true; va6uyAb=AABCVDSFAYKCS7BO8WfttqzJGSDGDSdjSsxBZcLDPrrZHP_rTJDO5w_3o-gW; loginSuccesDialogClosed=true; ss_enduser_cookie|18160538d0=5ec92199-fb58-47d0-9c8e-77807e4ec3f2; redirectReferer=register" \
-H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:103.0) Gecko/20100101 Firefox/103.0" \
-H "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8" \
-H "Accept-Language: en-US,en;q=0.5" \
-H "Accept-Encoding: gzip, deflate" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Origin: https://test.com" \
-H "Referer: https://test.com/register/" \
-H "Upgrade-Insecure-Requests: 1" \
-H "Sec-Fetch-Dest: document" \
-H "Sec-Fetch-Mode: navigate" \
-H "Sec-Fetch-Site: same-origin" \
-H "Sec-Fetch-User: ?1" \
-H "Te: trailers" \
-d "first_name=faketwo&last_name=faketwo&email=youremail@yourdomain.com&password=yourpassword&phone_number=2025550166"