开发者

Working with Curl to do get requests

开发者 https://www.devze.com 2023-03-16 00:53 出处:网络
This is one of those strange things that I could not find on the internet as hard as I tried to look.I am working with curl to do some get requests to twitter and google and would like to know if curl

This is one of those strange things that I could not find on the internet as hard as I tried to look.

I am working with curl to do some get requests to twitter and google and would like to know if curl has a way of simply encoding my strings to be 开发者_高级运维url safe? If curl does not encode urls for me can some one point me to a regex script for encoding urls?


A program wget will encode an url including space or punctuations.

$ wget 'http://www.example.com/123 456'
--2011-06-28 15:46:02--  http://www.example.com/123%20456
...
0

精彩评论

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