Skip to content

Error trying to get data with PHP file_get_contents #2

Description

@jroman14

Hi,
I trying to get query with file_get_contents but reicieve a 400 error. But if I put the url in browsers works ok.
https://weather.visualcrossing.com/VisualCrossingWebServices/rest/services/weatherdata".
"/forecast?unitGroup=metric&aggregateHours=24".
"&location=41.7333,1.8333&key=KEY
&contentType=json&locationMode=single

Where is the problem?

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