Skip to content

HTTP Code 0 #11

@mcandre

Description

@mcandre

When I test my php-simple-proxy installation by manually entering a remote URL in my web browser, it works fine.

But when I try to use JavaScript to get the same information, I just see:

Response: {"status":{"http_code":0},"contents":null}

var ajaxProxy = "php-simple-proxy/ba-simple-proxy.php?url=";

cardURL = ajaxProxy + cardURL;

info("Waiting for response on " + cardURL + "...");

$.ajax({
    type: "GET",
    timeout: 10000, // ms
    url: cardURL,
    cache: true,
    complete: function(response, status) {
        alert("Response: " + response.responseText);
    }
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions