`
hulianwang2014
  • 浏览: 691561 次
文章分类
社区版块
存档分类
最新评论
  • bcworld: 排版成这样,一点看的欲望都没有了
    jfinal

wget使用方法(some)

 
阅读更多

wget使用方法(some)

前提说明:

Web服务器http://127.0.0.1:8333/test.php 是我自己搭建的一台nginx+phpweb服务器

1 post请求

Wget默认发送Get请求,通过指定参数--post-dataor --post-file 这两个选项

e.g wget--post-data "aaaa" http://127.0.0.1:8333/test.php

wget--post-data "user=foo" http://127.0.0.1:8333/test.php

wget–post-file post_file http://127.0.0.1:8333/test.php

2 head请求

wget --debug--spider http://127.0.0.1:8333/test.php

--spider并不下载文件,通过head请求服务器,获取web服务器响应

3 –no-cache禁用缓存

e.g wget–no-cache http://127.0.0.1:8333/test.php

请求数据包头部Pragma:no-cache,不使用缓存,http1.1加上Cache-Control: no-cache, must-revalidate

4 –referer使用referer

Referrer主要用户点击的上一个页面,一般可以用做防盗链技术,防盗链可以在url后面加一个key=value加密字段,或者使用特定referer字段。

e.g wget–debug –referer www.baidu.com http://127.0.0.1:8333/test.php

5 显示wget帮助和版本信息

Wget –v or wget –h

6 –e 就是执行命令

e.g wget-e "postdata=111111111" http://localhost:8333/test.php

这种形式和wget –post-data=”11111111” http://localhost:8333/test.php是相同的。

7 logfile (-o)把debug信息输出到文件

e.g wget http://localhost:8333/test.php -ologfile

8 referer设置

e.g wget --debug --referer "www.baidu.com/dsadsa" www.baidu.com/index.html

分享到:
评论

相关推荐

    Centos-fonts for Browse

    For linux system, we just use ssh protocol, some systems may happen to following error. Protocol "ssh" selectededirecti guacd[10549]: Connection ID is "$59b6a773-dcaa-4bc2-8203-7b9f7cb8c95e" guacd...

    graylog2使用说明(docker)

    注意:默认首字母不能使用通配符,因为这样会使用大量的内存;强行开启修改配置文件`allow_leading_wildcard_searches = true` - 当某关键字不确认顺序的时候使用~ ``` ssh logni~ source:exmaple.org~ 结果...

    utils:一些实用程序文件和文档

    使用curl下载文件 curl http://some.url --output some.file 从Google云端硬盘下载文件 Replace FILEID and FILENAME: $ wget --load-cookies /tmp/cookies.txt ...

    ELDK使用与开发手册

    使用U-Boot下载Linux内核或者应用程序的最快捷的方法是通过网络传输。为了这一目的,U-Boot实现了TFTP协议(参见U-Boot中的tftpboot命令)。为了使主机支持TFTP,你必须确保TFTP后台程序/usr/sbin/in.tftpd已经安装...

    dotfiles:dotfiles,适用于macOS和Linux的明智的黑客默认设置

    sudo apt-get install bat fd-find fish curl wget python3 python3-pip python3-dev htop aria2 # dotbot does our install pip install dotbot==1.18.0 # fzf tool for reverse terminal history search git clone...

    Oh my ZSH! 安装脚本

    Via curl Via wget $ sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" Some featured plugins: git node.js postgreSQL ruby scala sublime text 2 python ...

    AwesomeCustomBashProfile

    如何使用 sudo wget https://github.com/UltraWalker/AwesomeCustomBashProfile/blob/master/.bash_profile -P ~/ && sudo vim .bashrc if [ -f ~/.bash_ultrawalker ]; then . ~/.bash_ultrawalkerfi~/.bashrc 文件...

    netpkg-tool:将.NET Core应用程序捆绑到方便Linux二进制文件中

    # Place netpkg-tool somewhere on your $PATH (Optional) mv ./netpkg-tool ~ /.local/bin Docker镜像 如果您不想安装任何依赖项, netpkg-tool也可以作为Docker映像使用: # Pull the latest netpkg-tool Docker ...

    cinc17:使用卷积网络进行AFIB检测(2017年心脏病学计算机挑战赛)

    安装 安装依赖项以在启用Python 3和GPU的Tensorflow上在深度集群上... I recommend putting it in scratch or somewhere where # you have a few GB of space. $HOME/.local/bin/virtualenv ecg_env source ecg_env/bi

    spugtex:用于 Unicode 数学符号的 Irssi 插件

    斯普特克斯 用于 Unicode 数学符号的 irssi 插件。 这个插件在你的外发消息中用... $ wget -O ~/.irssi/scripts/spugtex.pl https://raw.github.com/seece/spugtex/master/spugtex.pl 并在 irssi 中加载脚本 /script

    ScORCH:Obrar部署和Ansible剧本的DevOps编排

    ScORCH套房 朴素是一种伟大的美德,但要做到这一点需要艰苦的工作,要学会欣赏它就必须付出努力。 -Edsger W.Dijkstra DevOps软件编排 这会将最新版本(已发布或其他版本)...+--bin/ Some useful shell scripts +--etc

    Git文件缓存分离组件Gitsym.zip

    Git sym是一款通过git符号链接的进行大文件处理的软件,其目的是从修订控制中分离出庞大的文件缓存。... wget http://www.somewhere.com/my_big_data.v123.db EOF git-sym update 标签:Gitsym

    汽车刹车距离matlab代码-2019Summer:2019年夏季

    wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - Add the PPA: sudo apt-add-repository "deb https://apt.llvm.org/xenial/ llvm-toolchain-xenial-3.9 main" sudo apt-get update ...

    PyloadMover:Pyload Hook 插件,将下载的文件移动到文件夹

    加载移动器 Pyload Hook 插件,将下载的文件移动到电影或系列文件夹。 Pyload 首先尝试为文件查找映射系列。 如果这不成功,它将作为电影处理。 安装 更改为 pyload 文件夹: ... Some.Series S.01

    baulk:baulk-Windows最小软件包管理器

    Baulk-Windows最小软件包管理器 极简主义的Windows软件包管理器,免安装,无需修改系统环境变量,...# install some package which your need baulk install baulktar baulk7z neovim curl wget ripgrep # now you can

    MobaXterm 10.8最新professional版专业版

    对于本机,MobaXterm让你可以在windows下运行Unix命令,如:ls, cd, grep, awk, tail, cut, sed, wget, rsync, telnet, ssh, rlogin, rsh…等等Unix基本命令。而且MobaXterm有很多免费的插件可以实现你更多的需求 ...

    manong-magzine-spyder

    Just call java ManongMagzineSpyder and the console will print which volume is being processed, and finally you'll get some commands using wget utility. Execute these commands and those magzines will ...

    drupal 6.12

    wget http://drupal.org/files/projects/drupal-x.x.tar.gz tar -zxvf drupal-x.x.tar.gz This will create a new directory drupal-x.x/ containing all Drupal files and directories. Move the contents of ...

    Bochs - The cross platform IA-32 (x86) emulator

    - multiple sector read/write support for some image modes - new log prefix "IMG" for hdimage messages - floppy - added write protect option for floppy drives (based on @SF patch by Ben Lunt) - ...

    linux全志R16的linux系统编译的资料_20170502_1655.7z

    (编译请使用编译android的lichee的选项编译生成的.config文件,不然直接编译会报错!!!!) rootroot@cm-System-Product-Name:/home/wwt/linux_r16$ tar zxvf lichee_parrotv1.1_20161202.tar.gz rootroot@cm-...

Global site tag (gtag.js) - Google Analytics