Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Facebook secure url, shared

  1. #1
    Scott Solomko is offline Newbie
    Join Date
    Mar 2011
    Posts
    11

    Default Facebook secure url, shared

    On my Facebook Page Tab if the visitor is viewing the page securely, my page does not receive $_REQUEST['signed_request'] from Facebook.

    The page works fine when people are viewing the page via http but when using https and the shared ssl cert it appears $_REQUEST is being stripped during the redirect.

    Any insight would be helpful.

    Thanks.

  2. #2
    Alexander's Avatar
    Alexander is offline Technical Analyst
    Join Date
    Jul 2007
    Posts
    1,879

    Default

    If I were you I'd check your error_log files. Maybe they can shed some light on it?

  3. #3
    Scott Solomko is offline Newbie
    Join Date
    Mar 2011
    Posts
    11

    Default Shared certs and forms

    This is a follow up to the thread entitled "Facebook secure url, shared".

    I created to test pages:

    1) form.php a form with a single hidden element and a submit button
    2) process.php the action to form.php and simply echo's $_POST

    Everything works as expected when both pages use http://

    However, when I set the action of form.php to
    Code:
    https://echo.gendns20.com/~mydomain/process.php
    the $_POST array is empty.

    So either, a) GH is not forwarding the info or b) I am not using the shared cert properly

    Any advice would be greatly appreciated.

  4. #4
    Scott Solomko is offline Newbie
    Join Date
    Mar 2011
    Posts
    11

    Default

    Testing, my replies are not being posted.

  5. #5
    Scott Solomko is offline Newbie
    Join Date
    Mar 2011
    Posts
    11

    Default

    $_POST array is empty when submitting a form to a page that uses shared cert url

  6. #6
    David I is offline Newbie
    Join Date
    Jun 2010
    Posts
    1,242

    Default

    Hello Scott,

    You have created another thread. I moved reply to this one.

    I'm looking your script. But it doesn't worked even with http. Did you check this?

  7. #7
    Scott Solomko is offline Newbie
    Join Date
    Mar 2011
    Posts
    11

    Default

    Thanks David.

    I did test it and it works fine with http. Not exactly sure what you are looking at because I haven't posted accurate url's, I just through the faux shared cert address in there as an example.

    The code if you care which couldn't be anymore simple is as follows:

    form.php (plain)
    HTML Code:
    <form method="post" action="process.php">
        <input type="hidden" name="field" value="field value" />
        <button type="submit">Save</button>
    </form>
    form.php (with faux shared cert)
    HTML Code:
    <form method="post" action="https://echo.gendns20.com/~mydomain/process.php">
        <input type="hidden" name="field" value="field value" />
        <button type="submit">Save</button>
    </form>
    process.php
    PHP Code:
    <pre>
    <?php print_r($_POST); ?>
    </pre>

  8. #8
    David I is offline Newbie
    Join Date
    Jun 2010
    Posts
    1,242

    Default

    I've made a simple script to test and it works correct:

    glowform.php:
    Code:
    <form method="post" action="https://echo.gendns20.com/~someusername/glowprocess.php">
    <label>First Name: </label>
    <input type="text" name="fname">
    
    <input type="submit" name="submit" value="submit">
    
    </form>
    glowprocess.php
    Code:
    <pre>
    <?php print_r($_POST); ?>
    </pre>
    As result:

    HTML Code:
    Array(    [fname] => David    [submit] => submit)
    Please check it too.

  9. #9
    David I is offline Newbie
    Join Date
    Jun 2010
    Posts
    1,242

    Default

    I found your account on the server You can see my files in the same folder.

    By the way, I think that problem was with redirect to www.domain.com. I've disabled it in your .htaccess file.

    # RewriteCond %{HTTP_HOST} !^(www) [NC]
    # RewriteRule ^(.*)$ http://www.domain.com/$1 [L,R=301]

  10. #10
    Scott Solomko is offline Newbie
    Join Date
    Mar 2011
    Posts
    11

    Default

    Thanks for verifying.

Page 1 of 2 12 LastLast

Similar Threads

  1. How are your using Facebook
    By Christopher in forum Search Engines Talk
    Replies: 11
    Last Post: 12-29-2016, 12:19 PM
  2. GlowHost is On Facebook and Twitter!
    By Matt in forum General Announcements
    Replies: 2
    Last Post: 09-06-2010, 10:25 AM
  3. URL contains string then...
    By rlhanson in forum Programming Talk
    Replies: 2
    Last Post: 12-08-2009, 02:53 PM
  4. Secure Shell (SSH) access granted to shared accounts?
    By GCC in forum Pre-Sales Questions
    Replies: 3
    Last Post: 11-06-2008, 12:16 AM
  5. What is a URL?
    By Matt in forum Knowledge Base
    Replies: 0
    Last Post: 10-10-2005, 05:17 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14