开发者

Using GET request instead of POST one

The issue is that there is a form I want to fill. It's submitted via a POST request. But technically I can use only GET requests (pass an URL with GET parameters). And I don't have access to a server where the site (with a form to fill) is located.

I've tried to use POST params in GET request, but it didn't work. The other thing that came to my mind was to send GET request to my own server, which will perform the desired POST request. But I need the request to 开发者_如何学Gobe commited from my IP, but not from the server's one...

Can anybody give some piece of advice concerning solving this problem?


Is this homework? Seems odd that you wouldn't be able to use a POST.

Regardless,

The best way to do this would be to override the onclick event of your submit button; the JS function could poll for the fields you are looking to submit. Then use encodeURIComponent() on the values to get them sent to your webserver correctly.

Here you would be able to load the new page with the get?element=value&.... request.

http://www.w3schools.com/jsref/jsref_encodeURIComponent.asp


Firefox allows you to turn an HTML form (either GET or POST) with at least one regular text input field into a search keyword bookmark, although I'm not sure how easy it is to import and export an individual bookmark from one copy of Firefox to another.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜