1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Buying CURL - create account Expression Engine

Discussion in 'Programming' started by OnurSQL, Jan 9, 2011.

  1. #1
    I have a cURL script which posts data to Expression Engine type forum account registration URLS. i checked the script, all the post data are identical to how you would normally submit the form. User Agent is passed as Firefox, Cookies are carried over.

    But Expression Engine somehow understands and ignores the post, redirects the page, like its a normal GET request.

    I dont have source code to EE so if you do, you can easily figure this out, all the code i there. I need the little trick.

    $10 Paypal is my budget.
     
    OnurSQL, Jan 9, 2011 IP
  2. MyVodaFone

    MyVodaFone Well-Known Member

    Messages:
    1,048
    Likes Received:
    42
    Best Answers:
    10
    Trophy Points:
    195
    As Seller:
    100% - 1
    As Buyer:
    100% - 1
    #2
    Are you including all the hidden fields to your post data ?
     
    MyVodaFone, Jan 9, 2011 IP
  3. OnurSQL

    OnurSQL Guest

    Messages:
    67
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #3
    Yes everything.
    It simply redirects as if there is no POST data at all.
    If i could see the source code of the forum, i could solve in a sec but...
     
    OnurSQL, Jan 9, 2011 IP
  4. MyVodaFone

    MyVodaFone Well-Known Member

    Messages:
    1,048
    Likes Received:
    42
    Best Answers:
    10
    Trophy Points:
    195
    As Seller:
    100% - 1
    As Buyer:
    100% - 1
    #4
    What do you mean source code: the registration code used on the express.. forums ?

    
    <form id="register_member_form" method="post" action="http://expressionengine.com/">
    <div class="hiddenFields">
    <input name="XID" value="eb69c183279498251cf992e72a06bda37214dfac" type="hidden">
    <input name="ACT" value="7" type="hidden">
    
    <input name="RET" value="http://expressionengine.com/" type="hidden">
    <input name="FROM" value="forum" type="hidden">
    <input name="board_id" value="5" type="hidden">
    <input name="site_id" value="2" type="hidden">
    </div>
    
    <table class="tableBorder" style="width: 100%;" border="0" cellpadding="0" cellspacing="0">
    <tbody><tr>
    <td class="profileHeadingBG" colspan="2"><div class="tableHeading">Member Registration</div></td>
    
    </tr><tr>
    
    <td class="tableCellTwo" style="width: 45%;"><div class="defaultBold"><span class="highlight">*</span> Username</div><div class="itempad">Usernames must be at least 4 characters long</div></td>
    
    <td class="tableCellTwo" style="width: 55%;"><input name="username" value="" maxlength="32" class="input" size="25" style="width: 300px;" type="text"></td>
    
    </tr><tr>
    
    <td class="tableCellTwo" style="width: 45%;"><div class="defaultBold"><span class="highlight">*</span> Password</div><div class="itempad">Passwords must be at least 5 characters long</div></td>
    <td class="tableCellOne" style="width: 55%;"><input name="password" value="" maxlength="32" class="input" size="25" style="width: 300px;" type="password"></td>
    
    </tr><tr>
    
    <td class="tableCellTwo" style="width: 45%;"><div class="defaultBold"><span class="highlight">*</span> Password Confirm</div></td>
    
    <td class="tableCellOne" style="width: 55%;"><input name="password_confirm" value="" maxlength="32" class="input" size="25" style="width: 300px;" type="password"></td>
    
    
    </tr><tr>
    
    <td class="tableCellTwo" style="width: 45%;">
    <div class="defaultBold"><span class="highlight">*</span> Screen Name</div>
    <div class="itempad">If you leave this field blank, your screen name will be the same as your username</div>
    </td>
    <td class="tableCellOne" style="width: 55%;"><input name="screen_name" value="" maxlength="100" class="input" size="25" style="width: 300px;" type="text"></td>
    
    </tr><tr>
    
    <td class="tableCellTwo" style="width: 45%;"><div class="defaultBold"><span class="highlight">*</span> Email Address</div></td>
    <td class="tableCellOne" style="width: 55%;"><input name="email" value="" maxlength="120" class="input" size="40" style="width: 300px;" type="text"></td>
    
    </tr><tr>
    
    <td class="tableCellTwo" style="width: 45%;"><div class="defaultBold">URL</div></td>
    <td class="tableCellOne" style="width: 55%;"><input name="url" value="" maxlength="100" class="input" size="25" style="width: 300px;" type="text"></td>
    
    </tr><tr>
    
    <td class="tableCellTwo" style="width: 45%;"><div class="defaultBold">Location</div></td>
    <td class="tableCellOne" style="width: 55%;"><input name="location" value="" maxlength="100" class="input" size="25" style="width: 300px;" type="text"></td>
    
    </tr><tr>
    
    <td class="tableCellTwo" style="width: 45%;"><div class="defaultBold">Bio</div></td>
    <td class="tableCellOne" style="width: 55%;"><textarea name="bio" class="textarea" rows="8" cols="70"></textarea></td>
    
    
    
    </tr><tr>
    <td class="tableCellTwo" style="width: 45%;">
    <div class="defaultBold"> Do you have a coupon code?</div>
    
    <div class="default">If you have a code from Fusion Ads, please place it here.</div>
    
    </td>
    <td class="tableCellOne" style="width: 55%;"><input name="m_field_id_3" value="" class="input" maxlength="100" size="40" style="width: 100%;" type="text"></td>
    
    
    </tr><tr>
    
    <td colspan="2" class="tableCellOne">
    <div class="itempadbig">
    
    <div class="itempad"><div class="defaultBold">Terms of Service</div></div>
    
    <textarea name="rules" style="width: 100%;" class="textarea" rows="8" cols="90" readonly="readonly">All messages posted at this site express the views of the author, and do not necessarily reflect the views of the owners and administrators of this site.
    
    By registering at this site you agree not to post any messages that are obscene, vulgar, slanderous, hateful, threatening, or that violate any laws.   We will permanently ban all users who do so.   
    
    We reserve the right to remove, edit, or move any messages for any reason.
    </textarea>
    </div>
    </td>
    
    </tr><tr>
    
    <td colspan="2" class="tableCellOne">
    
    
    <p><span class="highlight">*</span> Submit the word you see below:</p>
    <p>
    <img src="http://expressionengine.com/images/captchas/1294625161.1752.jpg" style="border: 0pt none;" alt=" " width="163" height="36">
    <br>
    <input name="captcha" value="" size="20" maxlength="20" style="width: 140px;" type="text">
    </p>
    
    
    <p><input name="accept_terms" value="y" type="checkbox">&nbsp;&nbsp;<span class="alert">I agree to the terms of service</span></p>
    <p><input value="Submit" class="submit" type="submit"></p>
    <p><span class="highlight">*</span> Indicates required fields</p>
    
    </td>
    </tr>
    </tbody></table>
    </form>
    
    
    Code (markup):
     
    Last edited: Jan 9, 2011
    MyVodaFone, Jan 9, 2011 IP
  5. OnurSQL

    OnurSQL Guest

    Messages:
    67
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #5
    By source code, i mean the php code that processes the post on their side.

    I parse all that html you quote, including hiddens and everything. User Agent and Cookies are ok too. Im guessing they understand by something about HTTP Headers. Very frustrating.
     
    OnurSQL, Jan 9, 2011 IP
  6. gapz101

    gapz101 Well-Known Member

    Messages:
    524
    Likes Received:
    8
    Best Answers:
    2
    Trophy Points:
    150
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #6
    job done and payment received, thanks
     
    gapz101, Jan 9, 2011 IP