Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Interesting finding, the request fails on the hosted server: Trying “wget https://youtu.be/ErLpzD-O6ZY”

    On Dev server:
    **************

    [mrechte@linux2 ~]$ wget https://youtu.be/ErLpzD-O6ZY
    –2014-10-21 17:06:22– https://youtu.be/ErLpzD-O6ZY
    Résolution de youtu.be (youtu.be)… 173.194.41.36, 173.194.41.32, 173.194.41.40, …
    Connexion à youtu.be (youtu.be)|173.194.41.36|:80… connecté.
    requête HTTP transmise, en attente de la réponse… 302 Found
    Emplacement?: https://www.youtube.com/watch?v=ErLpzD-O6ZY&feature=youtu.be [suivant]
    –2014-10-21 17:06:22– https://www.youtube.com/watch?v=ErLpzD-O6ZY&feature=youtu.be
    Résolution de https://www.youtube.com (www.youtube.com)… 74.125.206.136, 74.125.206.93, 74.125.206.91, …
    Connexion à https://www.youtube.com (www.youtube.com)|74.125.206.136|:80… connecté.
    requête HTTP transmise, en attente de la réponse… 200 OK
    Taille?: non indiqué [text/html]
    Sauvegarde en?: ??ErLpzD-O6ZY.1??

    [ <=> ] 172 922 182KB/s ds 0,9s

    2014-10-21 17:06:23 (182 KB/s) – ??ErLpzD-O6ZY.1?? sauvegardé [172922]

    On hosted server:
    ****************
    [root@vps97604 ~]# wget https://youtu.be/ErLpzD-O6ZY
    –2014-10-21 17:01:31– https://youtu.be/ErLpzD-O6ZY
    Résolution de youtu.be (youtu.be)… 2a00:1450:4007:806::1002, 173.194.45.64, 173.194.45.65, …
    Connexion vers youtu.be (youtu.be)|2a00:1450:4007:806::1002|:80…connecté.
    requête HTTP transmise, en attente de la réponse…403 Forbidden
    2014-10-21 17:01:35 ERREUR 403: Forbidden.

    One can notice that it uses ipV6 on the hosted server.

    Disabling ipv6 on the hosted server solves this error but does not solve the WP issue ??

    Digging little bit more in the oEmbed protocol (https://oembed.com/) it seems the request to submit to youtube for the above video is:

    https://www.youtube.com/oembed/?url=http%3A//youtu.be/ErLpzD-O6ZY

    Which returns the expected file on my hosted server:

    [root@vps97604 ~]# wget https://www.youtube.com/oembed/?url=http%3A//youtu.be/ErLpzD-O6ZY
    –2014-10-21 17:34:22– https://www.youtube.com/oembed/?url=http%3A//youtu.be/ErLpzD-O6ZY
    Résolution de https://www.youtube.com (www.youtube.com)… 173.194.45.69, 173.194.45.70, 173.194.45.71, …
    Connexion vers https://www.youtube.com (www.youtube.com)|173.194.45.69|:80…connecté.
    requête HTTP transmise, en attente de la réponse…200 OK
    Longueur: non spécifié [application/json]
    Sauvegarde en : ?index.html?url=http:%2F%2Fyoutu.be%2FErLpzD-O6ZY?

    [ <=> ] 573 –.-K/s ds 0s

    2014-10-21 17:34:23 (28,5 MB/s) – ?index.html?url=http:%2F%2Fyoutu.be%2FErLpzD-O6ZY? sauvegardé [573]

    [root@vps97604 ~]# cat index.html\?url\=http\:%2F%2Fyoutu.be%2FErLpzD-O6ZY
    {“type”: “video”, “provider_name”: “YouTube”, “width”: 459, “height”: 344, “thumbnail_width”: 480, “title”: “QUICK UK 600 700 CHINESE WEIGHT TEST”, “author_name”: “ROBRENZ”, “version”: “1.0”, “author_url”: “http:\/\/www.youtube.com\/user\/ROBRENZ”, “provider_url”: “http:\/\/www.youtube.com\/”, “thumbnail_height”: 360, “html”: “\u003ciframe width=\”459\” height=\”344\” src=\”http:\/\/www.youtube.com\/embed\/ErLpzD-O6ZY?feature=oembed\” frameborder=\”0\” allowfullscreen\u003e\u003c\/iframe\u003e”, “thumbnail_url”: “http:\/\/i.ytimg.com\/vi\/ErLpzD-O6ZY\/hqdefault.jpg”}

    It works on my development server at home but not on my hosted virtual machine. When I paste an URL, I can see a progress bar for a while then the url is just pasted as normal text. Server has no firewall rule on the out interface.

    Thread Starter mrechte

    (@mrechte)

    Hello,
    As far as I ma concerned, I stick to version 2 and OpenLayers2. I did many modifications to the original code (eventpost.php|js) that it would not be easy to test it.
    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)