Curl example gives Invalid argument

1,584 views
Skip to first unread message

Данил Сагунов

unread,
Oct 31, 2013, 2:45:24 AM10/31/13
to native-cli...@googlegroups.com
Hello everyone!
I am trying to make curl working, but even example gives me `Invalid argument' error when trying to connect to "www.google.com:80". I have passed --allow-nacl-socket-api=localhost flag to chrome. What am I doing wrong?

Данил Сагунов

unread,
Oct 31, 2013, 4:13:56 AM10/31/13
to native-cli...@googlegroups.com
I've just found that curl returns CURLE_COULDNT_CONNECT (7) error. Is that trouble with socket API? How could I resolve it?

четверг, 31 октября 2013 г., 10:45:24 UTC+4 пользователь Данил Сагунов написал:

Данил Сагунов

unread,
Oct 31, 2013, 11:44:50 AM10/31/13
to native-cli...@googlegroups.com
Now I noticed that the system connect() function call in lib/connect.c returns error with errno ENOSYS (code 38) and message "Function not implemented". So the question is could I call it right somehow or it is really not implemented.


четверг, 31 октября 2013 г., 10:45:24 UTC+4 пользователь Данил Сагунов написал:
Hello everyone!

Sam Clegg

unread,
Oct 31, 2013, 11:57:44 AM10/31/13
to native-cli...@googlegroups.com
What is the version of chrome you are using? What is the version of
the nacl_sdk? For chrome you will need at least version 31. For the
SDK you will need to be using pepper_canary.

IIRC the curl example in naclports allows you pass arguments as URL
parameters. If you are still having trouble with pepper_canary you can
try adding the -v parameter ("?ARG1=http://google.com/&ARG2=-v") and
paste the resulting output here.
> --
> You received this message because you are subscribed to the Google Groups
> "Native-Client-Discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to native-client-di...@googlegroups.com.
> To post to this group, send email to native-cli...@googlegroups.com.
> Visit this group at http://groups.google.com/group/native-client-discuss.
> For more options, visit https://groups.google.com/groups/opt_out.

Данил Сагунов

unread,
Oct 31, 2013, 12:40:04 PM10/31/13
to native-cli...@googlegroups.com
Thank you for reply! The problem was in using pepper_31 instead of pepper_canary.

четверг, 31 октября 2013 г., 19:57:44 UTC+4 пользователь Sam Clegg написал:
What is the version of chrome you are using?  What is the version of
the nacl_sdk?  For chrome you will need at least version 31.  For the
SDK you will need to be using pepper_canary.

IIRC the curl example in naclports allows you pass arguments as URL
parameters. If you are still having trouble with pepper_canary you can
try adding the -v parameter ("?ARG1=http://google.com/&ARG2=-v") and
paste the resulting output here.



On Thu, Oct 31, 2013 at 8:44 AM, Данил Сагунов <danil...@gmail.com> wrote:
> Now I noticed that the system connect() function call in lib/connect.c
> returns error with errno ENOSYS (code 38) and message "Function not
> implemented". So the question is could I call it right somehow or it is
> really not implemented.
>
>
> четверг, 31 октября 2013 г., 10:45:24 UTC+4 пользователь Данил Сагунов
> написал:
>>
>> Hello everyone!
>> I am trying to make curl working, but even example gives me `Invalid
>> argument' error when trying to connect to "www.google.com:80". I have passed
>> --allow-nacl-socket-api=localhost flag to chrome. What am I doing wrong?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Native-Client-Discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
Reply all
Reply to author
Forward
0 new messages