Skip to content

HTTP Code 0 #11

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);
    }
});

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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