开发者

curl upload file using HTTP GET to Page

开发者 https://www.devze.com 2023-02-03 20:00 出处:网络
How do I send data in a file usi开发者_JAVA百科ng HTTP GET To a php script ? ThanksIf you mean file uploads: You don\'t. The GET method doesn\'t support file uploads. Also, the method has a length l

How do I send data in a file usi开发者_JAVA百科ng HTTP GET To a php script ?

Thanks


If you mean file uploads: You don't. The GET method doesn't support file uploads. Also, the method has a length limit between 2-4 kilobytes (depending on browser and server) so it's not suitable for most files anyway.

You would have to either fetch the file's contents and send them as an explicit GET parameter (bearing in mind the length limit), or use POST.


You could use GET to upload files, but this method im going to describe is a more covert way to do it.

In fact this method is used by a tool called SQLNINJA so Ill just ref you to its MAN page's description.

http://sqlninja.sourceforge.net/sqlninja-howto.html#ss2.6

0

精彩评论

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