1. Curl Error

I'm getting this error when running test_curl_.exw.

<0026>:: Argument 2 of curl_extract_cookies (optional) was omitted, but there is 
 no default value defined 
    cookies = curl_extract_cookies(res[3]) 
                                  ^ 

How do I fix this?

new topic     » topic index » view message » categorize

2. Re: Curl Error

Would curl_extract_cookies(res[3][1],res[3][2],res[3][3])* do the trick?

  • res[3][2] being an empty sequence
new topic     » goto parent     » topic index » view message » categorize

3. Re: Curl Error

All functions with an optional argument expect a sequence as a list of options. When no option is required, pass an empty sequence as optional argument.

cookies = curl_extract_cookies(res[3], {}) 

Jean-Marc

new topic     » goto parent     » topic index » view message » categorize

4. Re: Curl Error

jmduro said...

All functions with an optional argument expect a sequence as a list of options. When no option is required, pass an empty sequence as optional argument.

cookies = curl_extract_cookies(res[3], {}) 

Jean-Marc

Hi, Jean-Marc,

This error was in the test file in the archive. You might want to check that in your source.

Thank you!

new topic     » goto parent     » topic index » view message » categorize

5. Re: Curl Error

Thank you Euphoric,

I will check the test code.

Jean-Marc

new topic     » goto parent     » topic index » view message » categorize

6. Re: Curl Error

Which interpreter are you using ? Which library and which version ?

My test code for Eu3 (v1.0.5) uses the correct syntax.

Eu4 has a different syntax: optional argument is an integer which can be omitted.

Jean-Marc

new topic     » goto parent     » topic index » view message » categorize

7. Re: Curl Error

jmduro said...

Which interpreter are you using ? Which library and which version ?

My test code for Eu3 (v1.0.5) uses the correct syntax.

Eu4 has a different syntax: optional argument is an integer which can be omitted.

I'm using 4.1.0, Revision Date 2015-02-02.

new topic     » goto parent     » topic index » view message » categorize

8. Re: Curl Error

You should have been using Eu4 Standard Library. In this one, there is no sequence named optional as a second argument as in Eu3 Standard Library.

Did you use Eu3 Standard Library instead of Eu4 Standard Library?

Jean-Marc

new topic     » goto parent     » topic index » view message » categorize

9. Re: Curl Error

jmduro said...

You should have been using Eu4 Standard Library. In this one, there is no sequence named optional as a second argument as in Eu3 Standard Library.

Did you use Eu3 Standard Library instead of Eu4 Standard Library?

Jean-Marc

Are we talking about the test file? I'm just trying to run it with my current Euphoria setup, which would be the Eu4 Standard Library.

Oh... do I have to modify the test file before it will run with Eu4?

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu