Commit d6bc919
authored
HttpClient: send AddVariable params as query string on GETs and read them on the server (#1107)
Two related fixes for AddVariable usage on GET requests.
Client side (HttpClientJavaLib + GXHttpClient):
On GET, variables added with AddVariable were serialized as a multipart
body. Servers, proxies and CDNs ignore the body of a GET so the values
never reached the destination. They now go to the URL query string,
URL-encoded in UTF-8. POST/PUT/DELETE keep using the body as before.
Server side (HttpContextWeb):
HttpRequest.GetVariable() consulted only the request body. On a GET
this body is empty so values sent via the query string were invisible.
Now, only on GET, if the body parsed empty we fall back to the query
string. POST and any other verb are unchanged: the body still has
precedence and the query string is not consulted.1 parent 62c0298 commit d6bc919
3 files changed
Lines changed: 60 additions & 13 deletions
File tree
- common/src/main/java/com/genexus/internet
- java/src/main/java/com/genexus
- internet
- webpanels
Lines changed: 40 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
571 | 572 | | |
572 | 573 | | |
573 | 574 | | |
574 | | - | |
| 575 | + | |
575 | 576 | | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
576 | 604 | | |
577 | 605 | | |
578 | 606 | | |
579 | 607 | | |
580 | | - | |
581 | | - | |
582 | | - | |
| 608 | + | |
583 | 609 | | |
584 | | - | |
585 | | - | |
586 | | - | |
587 | | - | |
588 | | - | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
589 | 620 | | |
590 | 621 | | |
591 | 622 | | |
| |||
Lines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
547 | 547 | | |
548 | 548 | | |
549 | 549 | | |
550 | | - | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
551 | 559 | | |
552 | | - | |
| 560 | + | |
553 | 561 | | |
554 | 562 | | |
555 | 563 | | |
| |||
559 | 567 | | |
560 | 568 | | |
561 | 569 | | |
562 | | - | |
| 570 | + | |
563 | 571 | | |
564 | 572 | | |
565 | 573 | | |
| |||
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1242 | 1242 | | |
1243 | 1243 | | |
1244 | 1244 | | |
1245 | | - | |
| 1245 | + | |
| 1246 | + | |
| 1247 | + | |
| 1248 | + | |
| 1249 | + | |
| 1250 | + | |
| 1251 | + | |
| 1252 | + | |
| 1253 | + | |
1246 | 1254 | | |
1247 | 1255 | | |
1248 | 1256 | | |
| |||
0 commit comments