json - Wget windows and multiple --header switches -


I try to use wget 1.11.4 with a web site that runs on some Windows Server 2003 JSON I am doing I can fix the information but I can not send anyone. I'm not positive that my JSON has been formatted correctly but there may be a more fundamental problem.

If I do:

  wget - header = "authorization: bearer " --no-check-certificates - past-data = "{'Workspace': {'title': 'CMC regulatory support', 'creator_all': 'maven'}}" https://api.mavenlink.com/api/v1/workpaces.json  < / Pre> 

I get a JSON error from the site "Error 422: usable unit." But if I add another --holder:

  wget -S --header = "Authorization: Bearer & lt; redacted & gt;" --header = "content-type: application / jsn" - no-check-certificate - post-data = "{'workspace': {title ':' CMC regulatory support ',' creator_all ':' maven ' }} "Https://api.mavenlink.com/api/v1/workspaces.json  

I'm getting:

  SYSTEM_WGETRC = c: / Progra ~ 1 / wget / etc / wgetrc syswgetrc = C: \ Program Files \ GnuWin32 / etc / wgetrc wget: Invalid Option - ΓΌ Usage: wget [Option] ... [URL] ... Try 'wget - Help 'for more options  

But the manual clearly states that multiple-headed Annual switches allow, and I think Slithk used in the examples on the web? WTF?

content-type before your second - header / Code> contains different dashes

- Header = "content-type

If you fix this, the wget will send the request. / P>


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -