Skip to content

Error trying to get data with PHP file_get_contents #2

@jroman14

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?

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