|
Mantis - Quercus
|
|||||
| Viewing Issue Advanced Details | |||||
|
|
|||||
| ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
| 4832 | major | always | 10-29-11 17:46 | 06-21-12 13:58 | |
|
|
|||||
| Reporter: | jamesdlow | Platform: | |||
| Assigned To: | nam | OS: | |||
| Priority: | normal | OS Version: | |||
| Status: | closed | Product Version: | 4.0.14 | ||
| Product Build: | Resolution: | fixed | |||
| Projection: | none | ||||
| ETA: | none | Fixed in Version: | |||
|
|
|||||
| 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: | |||||
| Relationships | |||||
| Attached Files: |
|
||||
| Notes | |||||
|
|
|||||
|
|
||||