Sponsored Content
Full Discussion: Register account using cURL
Top Forums Shell Programming and Scripting Register account using cURL Post 302752305 by diabolusss on Sunday 6th of January 2013 05:37:07 PM
Old 01-06-2013
Register account using cURL

Hello!
I am trying to register account in Dropbox using cURL. There are a lot of existing examples doing POST and other useful stuff, however it doesn't work for me. Using formpost.pl script i got info:
Code:
--- FORM report. Uses POST to URL "/register"
Input: NAME="t" VALUE="vYTBqgxqCrt8K_prIXSHBkxt" (HIDDEN)
Input: NAME="fname" (TEXT)
Input: NAME="lname" (TEXT)
Input: NAME="email" (EMAIL)
Input: NAME="password" (PASSWORD)
Input: NAME="tos_agree" (CHECKBOX)
Input: NAME="register-submit" VALUE="1" (HIDDEN)
Input: NAME="register-submit-dummy" VALUE="Create account" (SUBMIT)
--- end of FORM

but when i mix it together
Code:
curl -d "t=XraVy8NxB2XE2nRnILrAWUUF&fname=first_name&lname=last_name&email=myacc@mymail.com&password=myacc@mymail.com&tos_agree=1&register-submit=1&register-submit-dummy=Create account" --location --output tmp/post.html "http://dropbox.com/register"

as result i get the same register page =\

i noticed that form has property onsubmit="return Forms.submitOnlyOnce();" and i don't know what variable i should set for checkbox. And as i understand "t" value is generated each time i open this page.

Maybe, someone have solved such a kind of problems or have interesting ideas... Anyway, thank you for response!
 

8 More Discussions You Might Find Interesting

1. Forum Support Area for Unregistered Users & Account Problems

I want to register an account from blocked country

Hi, I want to register an account in Unix forum to learning but i'm come from Vietnam, it's in blocked country list. Can you help me. I do not have a static ip. I want to register with following information: Username: consoko Email: <removed> Can you help me. Thanks so much. (1 Reply)
Discussion started by: Unregistered
1 Replies

2. Forum Support Area for Unregistered Users & Account Problems

I want to register an account from blocked country

Hi, I want to register an account in Unix forum to learning but i'm come from Vietnam, it's in blocked country list. Can you help me. I do not have a static ip. I want to register with following information: Username: <removed> Email: <removed> (1 Reply)
Discussion started by: Unregistered
1 Replies

3. Forum Support Area for Unregistered Users & Account Problems

Account register from blocked country

Hi, I'm from Viet Nam, I have tried to register an account, but I received a block message from administrator because I'm currently from a blocked country. I would like to join in Unix forum so that I can study about Unix/Linux, as well as gaining the knowledge to apply for a new job,... (0 Replies)
Discussion started by: Unregistered
0 Replies

4. Forum Support Area for Unregistered Users & Account Problems

Account register from blocked country

Hi, I have tried to register an account from this forum but I have received an notification about I could not be able to register because my IP comes from Viet Nam listed as block countries. I would like to study about Unix/Linux and gain the knowledge for applying the new job. Unfortunately,... (0 Replies)
Discussion started by: Unregistered
0 Replies

5. Forum Support Area for Unregistered Users & Account Problems

Account register from blocked country

Hi, I have tried to register an account from this forum but I have received an notification about I could not be able to register because my IP comes from China listed as block countries. I would like to study about Unix/Linux and gain the knowledge for applying the new job. Unfortunately, I... (1 Reply)
Discussion started by: Unregistered
1 Replies

6. Forum Support Area for Unregistered Users & Account Problems

Account Register With Tor

Hello, I would be interested in creating an account on this forum. However I have run into trouble in the process, I seem to not have permission to access the registration page. It seems that this forum has blocked registration from Tor. I am wondering if there is any way I could obtain an account... (0 Replies)
Discussion started by: Unregistered
0 Replies

7. Forum Support Area for Unregistered Users & Account Problems

Account register from blocked country

my country is in spam list, please remove my ip addres from there (0 Replies)
Discussion started by: ndzorro
0 Replies

8. Forum Support Area for Unregistered Users & Account Problems

Unable to register account

Hello there, I'm trying to register an account on Unix.com, but unfortunately I saw my country in block list due to spamming (Vietnam). Could you give me instruction to create new account on this forum? Any help will be appreciated. Thank you. (0 Replies)
Discussion started by: Unregistered
0 Replies
CURLOPT_HTTPPOST(3)					     curl_easy_setopt options					       CURLOPT_HTTPPOST(3)

NAME
CURLOPT_HTTPPOST - specify the multipart formpost content SYNOPSIS
#include <curl/curl.h> CURLcode curl_easy_setopt(CURL *handle, CURLOPT_HTTPPOST, struct curl_httppost *formpost); DESCRIPTION
Tells libcurl you want a multipart/formdata HTTP POST to be made and you instruct what data to pass on to the server in the formpost argu- ment. Pass a pointer to a linked list of curl_httppost structs as parameter. The easiest way to create such a list, is to use curl_for- madd(3) as documented. The data in this list must remain intact as long as the curl transfer is alive and is using it. Using POST with HTTP 1.1 implies the use of a "Expect: 100-continue" header. You can disable this header with CURLOPT_HTTPHEADER(3). When setting CURLOPT_HTTPPOST(3), it will automatically set CURLOPT_NOBODY(3) to 0. DEFAULT
NULL PROTOCOLS
HTTP EXAMPLE
/* Fill in the file upload field. This makes libcurl load data from the given file name when curl_easy_perform() is called. */ curl_formadd(&formpost, &lastptr, CURLFORM_COPYNAME, "sendfile", CURLFORM_FILE, "postit2.c", CURLFORM_END); /* Fill in the filename field */ curl_formadd(&formpost, &lastptr, CURLFORM_COPYNAME, "filename", CURLFORM_COPYCONTENTS, "postit2.c", CURLFORM_END); /* Fill in the submit field too, even if this is rarely needed */ curl_formadd(&formpost, &lastptr, CURLFORM_COPYNAME, "submit", CURLFORM_COPYCONTENTS, "send", CURLFORM_END); AVAILABILITY
As long as HTTP is enabled RETURN VALUE
Returns CURLE_OK if HTTP is enabled, and CURLE_UNKNOWN_OPTION if not. SEE ALSO
CURLOPT_POSTFIELDS(3), CURLOPT_POST(3), curl_formadd(3), curl_formfree(3), libcurl 7.54.0 May 17, 2016 CURLOPT_HTTPPOST(3)
All times are GMT -4. The time now is 07:02 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy