Colly: Post Data Encoding?

Created on 4 Jul 2018  ·  3Comments  ·  Source: gocolly/colly

why Post method need a map for form data and the key and value not encoding ?
e.g # not replace with %23

Most helpful comment

Lol no problem

你的英语不如我的中文差

(Google translate: "Your English is not as bad as my Chinese")

All 3 comments

@CrazyMouse I believe the map is very simple and flexible to work with. It could be done with something like url.Values but even this is just a wrapper around a map[string][]string. To be honest most people use the form values as a simple map so it simplifies things.

As for the value encoding, can you submit an example of it not working? I have not found your issue to be the case.

Hi Smith,
I am going sorry for the issue I submited 。after that I found It’is my web
server’s issue .
i hope you can understand my bad english

best wishes for you

Vincent Smith notifications@github.com于2018年7月13日 周五下午10:52写道:

@CrazyMouse https://github.com/CrazyMouse I believe the map is very
simple and flexible to work with. It could be done with something like
url.Values but even this is just a wrapper around a map[string][]string.
To be honest most people use the form values as a simple map so it
simplifies things.

As for the value encoding, can you submit an example of it not working? I
have not found your issue to be the case.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/gocolly/colly/issues/183#issuecomment-404856920, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABH1Ht-BbWnjkJ14h3cUUm2bkX0pgtQJks5uGLQzgaJpZM4VCe3_
.

Lol no problem

你的英语不如我的中文差

(Google translate: "Your English is not as bad as my Chinese")

Was this page helpful?
0 / 5 - 0 ratings

Related issues

K4N0 picture K4N0  ·  6Comments

peterhellberg picture peterhellberg  ·  3Comments

ascode picture ascode  ·  3Comments

mishop picture mishop  ·  3Comments

0verbyte picture 0verbyte  ·  5Comments