[wp-hackers] wp_remote_get() fails but wget works?
Mike Walsh
mpwalsh8 at gmail.com
Wed Feb 6 19:25:41 UTC 2013
Thanks for taking a look at my problem. Your example code gives me a
couple ideas to try. I will take a look at the other links you pointed
out. FWIW - the plugin you referenced (WordPress Google Form - wpgform) is
my plugin. I am trying to resolve issues people are having now that Google
has updated Google Forms. Fortunately there is still a way to create a
legacy form which is my current recommendation until I can resolve this.
On Wed, Feb 6, 2013 at 12:54 PM, Kurt Payne <
kpayne+wordpress+hackers at gmail.com> wrote:
> I never did get this to work. :-/
>
> This is bouncing you from the spreadsheet to the login page, then back.
> Their login page must be looking for something more than just a cookie.
>
> I did find a few things to help get you further, though.
>
> First, the WordPress HTTP API can handle cookies. It just doesn't do so by
> default. The code says so:
>
> // Cookies are not handled by the HTTP API currently. Allow for plugin
> authors to handle it
> // themselves... Although, it is somewhat pointless without some reference.
>
> I have some sample code up that should work (dd32 will correct me otherwise
> :-)). It's PHP 5.3 (beware the closure)
> https://gist.github.com/kurtpayne/4724289
>
> If you remove the unlink call, you can inspect the cookie file afterwards
> and verify that the proper cookies were set.
>
> Second, google has published an article on using curl to access spreadsheet
> data. It's got some specialized authentication tokens, but it may be
> appropriate to your needs:
> https://developers.google.com/gdata/articles/using_cURL
>
> Last, this plugin claims do what you're after
> http://wordpress.org/extend/plugins/wpgform/
>
> But it comes with this caveat: "Currently, this plugin only supports Google
> Forms that are "Published as a web page" and therefore public. Private
> Google Forms are not supported." So it may be a known issue.
>
> I hope this helps!
>
> --Kurt
>
>
> On Tue, Feb 5, 2013 at 6:49 AM, Mike Walsh <mpwalsh8 at gmail.com> wrote:
>
> > On Mon, Feb 4, 2013 at 7:07 PM, Dion Hulse (dd32) <wordpress at dd32.id.au
> > >wrote:
>
> [ ... snipped ... ]
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
--
Mike Walsh - mpwalsh8 at gmail.com
More information about the wp-hackers
mailing list