Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

mirgcire on "How to find documentation on wp_remote_get arguments"

$
0
0

I have tried web searches and codex, but all I have learned is that it takes a second parameter $args, but no description of the options available. Specifically I am hoping to find an parameter that tells it to tolerate html errors.

Background:

I am porting a a wiki site (that I created) into wordpress. There are a lot of pages that I need to port so I created a metabox tool to help me do this. Basically, the tool is pulling the html from a wiki page and pushing it into a wordpress page. It works great on most of the pages, but on 2 of the pages, it encounters an error.

When it encounters the error, it just stops, no error message. But I am using the Chrome browser, so I opened the console window and found this error message. "Uncaught SyntaxError: Unexpected token <"

To investigate the error I used "view page source" on two pages, one that encounters the error and one that does not. I put both sources into an html editor to see if that would reveal the problem. Both pages have the same error.

So now I am hoping there is some way to have wp_remote_get tolerate the error.


Viewing all articles
Browse latest Browse all 8245

Trending Articles