Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not set "Range" into request header #54

Open
Timer-cxz opened this issue Feb 23, 2017 · 0 comments
Open

Can not set "Range" into request header #54

Timer-cxz opened this issue Feb 23, 2017 · 0 comments
Labels

Comments

@Timer-cxz
Copy link

Timer-cxz commented Feb 23, 2017

  1. exec command:
    bat GET http://127.0.0.1:8080/bd_logo1.png 'Host:www.baidu.com' 'Range:bytes=0-3'

  2. request message:
    GET /bd_logo1.png?Range%3Abytes=0-3 HTTP/1.1
    Host: www.baidu.com
    Accept: application/json
    Accept-Encoding: gzip, deflate
    User-Agent: bat/0.1.0

  3. question:
    Can not set "Range:bytes=0-3" as a header in http request, and make "Range" as a parameter in URL.

@astaxie astaxie added the bug label Feb 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants