GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — example/hello_world_server can't handler POST request with big text body · Issue #681 · cpp-netlib/cpp-netlib

example/hello_world_server can't handler POST request with big text body #681

New issue
Copy link
New issue
Copy link
Open
Open
example/hello_world_server can't handler POST request with big text body#681
Copy link

Description

@janlely
janlely
opened on Aug 25, 2016
Issue body actions
  • I run the hello_world_server example
  • post some raw text data to hello_world_server with POSTMAN

small text OK

large text, say 1000 words, get the "Cound not get any response" error

can anybody tell me why?

Activity

  1. deanberris commented on Aug 25, 2016

    @deanberris
    deanberris
    on Aug 25, 2016
    Member
    More actions

    Does POSTMAN expect a "100 continue" response for larger POST requests? If so, then the hello_world_server doesn't send those 100-continue responses.

  2. janlely commented on Aug 26, 2016

    @janlely
    janlely
    on Aug 26, 2016
    Author
    More actions

    I print out all the request headers, it seems that POSTMAN didn't set the "Expect: 100-continue"

    Host : 127.0.0.1:8080
    Connection : keep-alive
    Content-Length : 564
    Cache-Control : no-cache
    Origin : chrome-extension://fhbjgbiflinjbdggehcddcbncdddomop
    Content-Type : text/plain;charset=UTF-8
    User-Agent : Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/51.0.2704.79 Chrome/51.0.2704.79 Safari/537.36
    Postman-Token : 15587bd8-154a-fac4-e209-06b752dff5aa
    Accept : /
    Accept-Encoding : gzip, deflate
    Accept-Language : en-US,en;q=0.8,zh-CN;q=0.6,zh;q=0.4,zh-TW;q=0.2

  3. deanberris commented on Aug 26, 2016

    @deanberris
    deanberris
    on Aug 26, 2016
    Member
    More actions

    Interesting. The hello_world_server is just supposed to respond with text in that case, since it will just attempt to drop the incoming data. Have you tried modifying the server implementation to print the data it's receiving, to see where the problem is?

  4. janlely commented on Sep 9, 2016

    @janlely
    janlely
    on Sep 9, 2016
    Author
    More actions

    The content above was just print by the "hello_world_server".
    hope you can test by yourself, and solve the problem
    I now use libevent instead.

  5. carun commented on Jan 13, 2018

    @carun
    carun
    on Jan 13, 2018
    More actions

    I've been able to reproduce the issue on 0.13-release branch on Ubuntu 17.10 64 bit. Will try to find the root cause.

  6. deanberris
    added a commit that references this issue on Jan 26, 2018

    example: send response content-length as part of http header from ser…

    e653e47
  7. carun commented on Feb 23, 2018

    @carun
    carun
    on Feb 23, 2018
    More actions

    @deanberris @janlely can you close this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.