Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
Nicht ganz.Es müsste so stimmenCode:curl --get __mk_de_DE=ÅMÅZÕÑ&url=search-alias%3Ddiy&field-keywords=SUCHBEGRIFF&x=1&y=1 http://amazon.de/s/ref=nb_sb_noss
Meist liegt das einfach am Referer. Oder es sind Cookies im Einsatz die dann ebenfalls übertragen werden müssen.aber anscheinend erkennt Amazon, dass ich die Seite mit CURL lade, und blockiert das. Vermutlich liegt das daran, dass CURL einen eigenen HTTP-Agent-String sendet.
Nicht ganz.Erstens mußt du die GET Daten mittels -d übergeben und außerdem mußt du natürlich in der Shell entsprechend "Quoten" da & ein Spezialzeichen ist und man sonst wie LukasB014 Fehlermeldungen von der Shell bekommt.
Terminal hat gesagt.:-d/--data <data>
(HTTP) Sends the specified data in a POST request to the HTTP
server, in the same way that a browser does when a user has
filled in an HTML form and presses the submit button. This will
cause curl to pass the data to the server using the content-type
application/x-www-form-urlencoded. [...]
Nicht ganz:Nicht ganz.
Mit -d oder --data übergibt man eine Anfrage via POST
man curl hat gesagt.:-G/--get
When used, this option will make all data specified with -d/--data or --data-binary to be used in a HTTP GET request
Für die Bash mit einfachen Anführungszeichen:Aber ich würde trotzdem noch gerne wissen, wie ich für CURL oder generell das Terminal solche Sonderzeichen maskieren muss.
curl --get -d '__mk_de_DE=ÅMÅZÕÑ&url=search-alias%3Ddiy&field-keywords=SUCHBEGRIFF&x=1&y=1' http://amazon.de/s/ref=nb_sb_noss
curl 'http://amazon.de/s/ref=nb_sb_noss?__mk_de_DE=ÅMÅZÕÑ&url=search-alias=diy&field-keywords=SUCHBEGRIFF&x=1&y=1'