| Anonymous | Login | Signup for a new account | 06-10-2026 07:20 PDT |
| Main | My View | View Issues | Change Log | Docs |
| Viewing Issue Advanced Details [ Jump to Notes ] | [ View Simple ] [ Issue History ] [ Print ] | ||||||||
| ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
| 0004832 | [Quercus] | major | always | 10-29-11 17:46 | 06-21-12 13:58 | ||||
| Reporter | jamesdlow | View Status | public | ||||||
| Assigned To | nam | ||||||||
| Priority | normal | Resolution | fixed | Platform | |||||
| Status | closed | OS | |||||||
| Projection | none | OS Version | |||||||
| ETA | none | Fixed in Version | Product Version | 4.0.14 | |||||
| Product Build | |||||||||
| Summary | 0004832: Curl ignores what is set in the "Content-Type" Header for a POST | ||||||||
| Description |
This is because it is only gets it from PostBody in com.caucho.quercus.lib.curl.HttpPostRequest.java instead of from the curl object curl.getRequestPropertiesMap().get("Content-Type") I have uploaded a working version that conditionally checks the curl object before it gets it from the PostBody. In PHP it is ignoring this: <?php $curl_handle = curl_init(); curl_setopt($curl_handle, CURLOPT_HTTPHEADER, 'Content-Type: application/json'); ?> |
||||||||
| Steps To Reproduce | |||||||||
| Additional Information | |||||||||
| Attached Files |
|
||||||||
|
|
|||||||||
Notes |
|
|
(0005925) nam 06-21-12 13:58 |
php/5033 Fixed for 4.0.29. The following should work now: curl_setopt($curl_handle, CURLOPT_HTTPHEADER, array('Content-Type: application/json')); |
| Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
31 total queries executed. 26 unique queries executed. |