curl使用用户名密码和登录按钮登录网站 [英] curl logging into a website with username password and login button

查看:128
本文介绍了curl使用用户名密码和登录按钮登录网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用以下命令登录网站 http://f7.masaladesi.com/htmlupload.php

I use the below command to login to the site http://f7.masaladesi.com/htmlupload.php

curl -d "vb_login_username=username&vb_login_password=password" http://f7.masaladesi.com/htmlupload.php

但结果与最初的页面相同.我将name属性用于html表单的登录名和密码.

But the reult is the same webpage of the initial one. I use the name attribute for login and password from the html form.

推荐答案

您正在寻找的登录端点似乎是/login.php :

It seems the login endpoint you are looking for is /login.php :

curl -v -d "vb_login_username=username&vb_login_password=password&do=login" http://f7.masaladesi.com/login.php

这篇关于curl使用用户名密码和登录按钮登录网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆