cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: login to youtube account

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 7 Nov 2009 09:34:08 +0100 (CET)

On Sat, 7 Nov 2009, Bhadraji D wrote:

> I am trying to login/signup to youtube account using curl tool from command
> line as well as through curl api.

http://curl.haxx.se/docs/httpscripting.html and when you've read through it,
pay particular attention to section 13.

Then read this:
http://curl.haxx.se/docs/faq.html#Why_do_I_get_problems_when_I_use

> The following is the login form and the url .
> login_form = {
> 'current_form': 'loginForm',
> 'next': '/',
> 'action_login': 'Log In',
> 'username': username,
> 'password': password,
> }
>

> I have tried with from command line as:
>
> $curl -v -d Username=xxxxx:Password=xxxxx
> http://www.youtube.com/signup?next=/&gl=US&hl=en

You need to provide *all* fields in the form, and then you most likely also
need to activate cookies (-c) and follow location headers (-L).

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2009-11-07