Post Method

Welcome Forums General PowerShell Q&A Post Method

This topic contains 1 reply, has 2 voices, and was last updated by

 
Moderator
7 months ago.

  • Author
    Posts
  • #112481

    Participant
    Topics: 10
    Replies: 7
    Points: 5
    Rank: Member

    I try to make query for this web page: http://www.overpass-api.de/query_form.html

    and i wrote this Code:

    $test =  Invoke-WebRequest -Uri "http://www.overpass-api.de/query_form"
    $dbForm = $test.Forms[0]
    $dbForm
    $dbForm.Fields["] =   "[bbox:50.662127,5.9748990,50.857233,6.218150];node [natural = tree];out meta;"
    $dbForm.Fields
    Invoke-WebRequest -Uri ("http://www.overpass-api.de/"  -$dbForm.Action) -Method Post -Body $dbForm.Fields

     

    But it does not work well

    can one correct it please for me.

  • #112487

    Moderator
    Topics: 8
    Replies: 728
    Points: 2,025
    Helping Hand
    Rank: Community Hero

    Hi @majd , you had same question before, please don't duplicate it. You could updat the same previous question instead.

The topic ‘Post Method’ is closed to new replies.

denizli escort samsun escort muğla escort ataşehir escort kuşadası escort