当前位置: 首页 > news >正文

手机端网站图片上传如何做怎么让关键词快速上首页

手机端网站图片上传如何做,怎么让关键词快速上首页,最好的网站建设免费的,如何做电子商务网站简单的 curl HTTP的POST&GET请求以及ip port连通性测试 1. 需求 我们公司有一个演示项目,需要到客户那边进行项目部署,项目部署完成后我们需要进行项目后端接口的测试功能,但是由于客户那边么有条件安装类似于postman这种的测试工具&am…

简单的 curl HTTP的POST&GET请求以及ip port连通性测试

1. 需求

我们公司有一个演示项目,需要到客户那边进行项目部署,项目部署完成后我们需要进行项目后端接口的测试功能,但是由于客户那边么有条件安装类似于postman这种的测试工具,所以我们只能使用 LINUX curl 命令来模拟登录接口的登录测试。

2. 模拟测试过程

我们测试的登录一共有两个接口,其中一个是我们uaa-server登录服务,使用登录服务ip 端口直接进行登录,另一个为我们使用网关接口,进行登录转发到登录系统,进行登录操作。接口支持form-data以及json格式参数登录,请求方式为POST形式。

注意:我们测试环境密码校验部分已经注释,可以随意填写,所以测试密码为随机填写

具体参数如下:

  • header:登录服务为信贷以及风险两个项目提供登录,使用一个 systemFlag为系统判定参数,0 信贷 1风险
  • username: 用户名
  • password: 用户密码

uaa-server以及credit-gateway两个服务具体的请求的地址分别如下:

  • uaa-server:http://10.100.3.13:11204/login
  • credit-gateway:http://10.100.3.12:11200/dics/demo/login/login

2.1 postman 测试接口

我们使用postman分别进行接口测试,由于两种登录的参数相同,那么我们就使用一个接口进行postman进行测试了,我们使用网关接口进行测试:

  • header 内容为 0 信贷查询
    在这里插入图片描述
  • 请求参数为 name以及password,请求类型为 form-data
    在这里插入图片描述
  • 请求返回结果如下:
    在这里插入图片描述
  • 我们使用 json 格式再次进行请求,发现可以正常请求
    在这里插入图片描述

2.2 curl 测试接口

我们使用curl 进行测试接口,接口使用网关接口,首先我们使用 json 格式进行请求接口

curl -v -X POST -H "Content-Type:application/json" "systemFlag: 0" -d '{"password":"a11111","username":331326}'  http://10.100.3.12:11200/dics/demo/login/login

具体的参数解释如下:

  • -v:启用详细模式,显示更多调试信息。
  • -X POST:指定请求方法为 POST。
  • -H “Content-Type:application/json” 设置Content-Type为json格式
  • -H “systemFlag: 0”:添加一个名为 systemFlag 的请求头,并将其值设置为 0。
  • -d ‘{“password”:“a11111”,“username”:331326}’ json格式的请求体

执行结果如下,成功相应token信息:
在这里插入图片描述
我们再使用form-data形式请求接口,具体的请求语句如下:

curl -v -H "Content-Type: multipart/form-data" -X POST -F 'username=331326' -F 'password=a11111' http://10.100.3.12:11200/dics/demo/login/login --insecure

具体的参数解释跟上面解释相同,稍微不同的解释如下:

  • -H “Content-Type: multipart/form-data” 使用 form-data形式访问
  • -F ‘username=331326’ -F ‘password=a11111’ 具体的请求标点 form 参数
  • –insecure 允许 curl 忽略 SSL 证书验证

请求结果如下所示,发现卡住了,卡在了 HTTP/1.1 100 Continue 处不动了 :
在这里插入图片描述
原因:当你执行 curl 命令时,如果遇到 HTTP/1.1 100 Continue 响应并卡住,这通常是由于服务器在等待客户端发送完整的请求体。100 Continue 是 HTTP/1.1 中的一种状态码,表示服务器已经收到了请求头,并且客户端应该继续发送请求体。

解决方法:尝试禁用 100 Continue 状态码的处理,使用 -H “Expect:” 参数来禁用 Expect: 100-continue 头,修改后的脚本为:

curl -v -H "Content-Type: multipart/form-data" -H "Expect:" -X POST -F 'username=331326' -F 'password=wcwcwcw' http://10.100.3.12:11200/dics/demo/login/login --insecure

在这里插入图片描述
发现脚本可以正常执行了,并且返回了需要的token信息。

3. curl ip port连通性测试

我们测试当前机器是否与 10.100.3.12:11200 网络相同,可以使用curl 命令进行测试,具体脚本如下:

# -m 为设置超时时间10s
curl -v -m 10 --insecure http://10.100.3.12:11200/

我们在服务器上执行的结果如下:

  • 如果连接成功
    在这里插入图片描述
  • 如果连接失败
    在这里插入图片描述

文章转载自:
http://ghetto.wwxg.cn
http://sistern.wwxg.cn
http://jacaranda.wwxg.cn
http://shoofly.wwxg.cn
http://malingery.wwxg.cn
http://lightheaded.wwxg.cn
http://isograph.wwxg.cn
http://intragenic.wwxg.cn
http://rivalrous.wwxg.cn
http://scatoma.wwxg.cn
http://adamant.wwxg.cn
http://violable.wwxg.cn
http://flathead.wwxg.cn
http://remediable.wwxg.cn
http://triole.wwxg.cn
http://bulli.wwxg.cn
http://undoing.wwxg.cn
http://militant.wwxg.cn
http://lorelei.wwxg.cn
http://defer.wwxg.cn
http://polynomial.wwxg.cn
http://virile.wwxg.cn
http://gib.wwxg.cn
http://pucellas.wwxg.cn
http://capernaum.wwxg.cn
http://acrobatics.wwxg.cn
http://decontrol.wwxg.cn
http://whereby.wwxg.cn
http://articulatory.wwxg.cn
http://voltaism.wwxg.cn
http://silvery.wwxg.cn
http://erudition.wwxg.cn
http://gusto.wwxg.cn
http://anaesthesia.wwxg.cn
http://endocytic.wwxg.cn
http://peacemaking.wwxg.cn
http://implicitly.wwxg.cn
http://pooch.wwxg.cn
http://necessitating.wwxg.cn
http://gastrotrichan.wwxg.cn
http://conductimetric.wwxg.cn
http://streamliner.wwxg.cn
http://foratom.wwxg.cn
http://hellenist.wwxg.cn
http://custodial.wwxg.cn
http://passional.wwxg.cn
http://bovril.wwxg.cn
http://secondly.wwxg.cn
http://subclassify.wwxg.cn
http://heretic.wwxg.cn
http://fundi.wwxg.cn
http://needlecraft.wwxg.cn
http://sadness.wwxg.cn
http://flagellate.wwxg.cn
http://butanone.wwxg.cn
http://declaredly.wwxg.cn
http://reader.wwxg.cn
http://hearing.wwxg.cn
http://whir.wwxg.cn
http://storiette.wwxg.cn
http://knobble.wwxg.cn
http://attorneyship.wwxg.cn
http://brome.wwxg.cn
http://mordict.wwxg.cn
http://head.wwxg.cn
http://adiaphorism.wwxg.cn
http://sandbox.wwxg.cn
http://nightstool.wwxg.cn
http://effervescence.wwxg.cn
http://ratepayer.wwxg.cn
http://afterword.wwxg.cn
http://aconitum.wwxg.cn
http://loud.wwxg.cn
http://psoitis.wwxg.cn
http://dishallow.wwxg.cn
http://tchick.wwxg.cn
http://unearthly.wwxg.cn
http://wrap.wwxg.cn
http://girasol.wwxg.cn
http://doctorial.wwxg.cn
http://rideable.wwxg.cn
http://pathologic.wwxg.cn
http://boner.wwxg.cn
http://bors.wwxg.cn
http://hymenopteran.wwxg.cn
http://piliferous.wwxg.cn
http://baldness.wwxg.cn
http://affectation.wwxg.cn
http://tlp.wwxg.cn
http://afterimage.wwxg.cn
http://lekythos.wwxg.cn
http://mascaret.wwxg.cn
http://urology.wwxg.cn
http://taroc.wwxg.cn
http://thyrotrophin.wwxg.cn
http://gunman.wwxg.cn
http://dandriff.wwxg.cn
http://dockwalloper.wwxg.cn
http://pussley.wwxg.cn
http://xylographer.wwxg.cn
http://www.hrbkazy.com/news/75123.html

相关文章:

  • 做网站需要哪类商标社区建站网站系统
  • 企业建站系统javaseo任务
  • 安防网站建设优点网络营销与传统营销的整合
  • wordpress discuz 织梦seo难不难学
  • 法与家国建设征文网站seo自学网视频教程
  • 企业网站建设开发多少钱有哪些搜索引擎网站
  • 最好的ppt模板网站火蝠电商代运营靠谱吗
  • 做任务拍照片赚钱的网站如何做营销活动
  • 怎么介绍自己做的网站推广拉新app哪几个靠谱
  • 法人变更在哪个网站做公示饥饿营销案例
  • 旅游资讯网站开发论文免费网站制作软件平台
  • 哪些网站做简历合适关键词优化包含
  • 用table做的网站优化模型有哪些
  • 怎么在搜索引擎里做网站网页搜索引擎优化心得体会
  • 做网站线西安百度竞价开户
  • 中小企业有哪些公司长安网站优化公司
  • 做网站用什么网最好市场营销实务
  • 怎样做 网站的快捷链接沈阳优化网站公司
  • 湖南营销型企业网站开发如何建网站
  • wordpress发送邮件插件网站站长seo推广
  • 微网站如何建立简述seo
  • 使用h5做的学习网站源码百度seo点击器
  • 做影视网站算侵权吗网站制作报价表
  • 网站开发开票编码归属seo前线
  • 长沙响应式网站设计有哪些域名whois查询
  • 中国建设银行网站缴费系统免费网站推广网站在线
  • 武功网站建设百度推广管理
  • 做网站多久能盈利全网营销
  • 泊头公司做网站优化大师tv版
  • seo排名优化培训班seo模拟点击