Comments (5)
Not, at the moment, no:
case 'P':
client_ctx.payload = optarg;
if (0 != stat(optarg, &st))
{
perror("stat");
exit(2);
}
But pull requests are welcome!
from lsquic.
Question answered: closing.
from lsquic.
Thx. Then how can I modify some code to support posting some string? Which interface or code segment can put the contents of file to the request body? Wait for your advice! Thx again!
from lsquic.
Start with this code in test/http_client.c
:
if (st_h->client_ctx->payload)
{
st_h->reader.lsqr_read = test_reader_read;
st_h->reader.lsqr_size = test_reader_size;
st_h->reader.lsqr_ctx = create_lsquic_reader_ctx(st_h->client_ctx->payload);
if (!st_h->reader.lsqr_ctx)
exit(1);
}
else
st_h->reader.lsqr_ctx = NULL;
test_reader_read()
reads from a file. You can change it (or add another reader) to do something else.
from lsquic.
I will try, Thx a lot!
from lsquic.
Related Issues (20)
- How to resolve error in v2.8.9 ? HOT 1
- How to use the connection migration
- Compilation error
- inexplicable packet loss with loopback communication
- failed to build on windows HOT 1
- QLOG
- Support for Wordpress.com HOT 1
- Failed to build on linux
- consider building and pushing interop runner image in CI HOT 1
- `Make` Failed In Ubuntu(VMware) HOT 3
- Whether there are plans to support FEC or mutipath HOT 1
- Conan Support
- h3 do not send CONNECTION_CLOSE frame on lossy connections HOT 4
- any safeguard against http2 rapid reset? HOT 1
- fail to compile with errors inside ubuntu 22.04 docker HOT 1
- using master version of boringssl and lsquic, handshake failed (unknown library) HOT 1
- how to close http mode HOT 2
- Docker build fail with boringssl errror
- Connection timeout (AL_HANDSHAKE) on loss of first packet. HOT 2
- POST method
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lsquic.