[Gluescript-develop] [ gluescript-Bug Reports-2975626 ] httpHeader does not work
Brought to you by:
fbraem
From: SourceForge.net <no...@so...> - 2010-03-24 21:12:13
|
Bug Reports item #2975626, was opened at 2010-03-24 02:47 Message generated for change (Comment added) made by fbraem You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=1264278&aid=2975626&group_id=247611 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: cURL Group: 0.1.00 Status: Open Priority: 5 Private: No Submitted By: kwez (kwez) Assigned to: Franky Braem (fbraem) Summary: httpHeader does not work Initial Comment: the curl.easy.httpHeader property does not exist. assigning values does not work, the headers are not used / sent. // headers not sent / replaced easy.setopt(curl.Option.HTTPHEADER, 'KwezSpecialHeader:MoiMeme'); easy.setopt(curl.Option.HTTPHEADER, 'Accept:text/plain'); ---------------------------------------------------------------------- >Comment By: Franky Braem (fbraem) Date: 2010-03-24 22:12 Message: This bug is solved in the code repository. This will be part of version 0.1.01 Thanks for reporting! ---------------------------------------------------------------------- Comment By: Franky Braem (fbraem) Date: 2010-03-24 21:57 Message: Just found out that using an Array doesn't work either. It must be an array, but the POCO SpiderMonkey framework doesn't convert the JavaScript Array to a C++ Array object. ---------------------------------------------------------------------- Comment By: Franky Braem (fbraem) Date: 2010-03-24 21:32 Message: The HTTPHEADER option expect an Array. Can you try again as follows: var headers = new Array(); headers[0] = 'KwezSpecialHeader:MoiMeme'; headers[1] = 'Accept:text/plain' easy.setopt(curl.Option.HTTPHEADER, headers); ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=1264278&aid=2975626&group_id=247611 |