Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Zend\Http\Client uses arg_separator.output to build URLs, resulting in possibly wrongly formed URLs #2745

Closed
demonkoryu opened this Issue · 2 comments

3 participants

@demonkoryu

I've set arg_separator.output to &.
http_build_query() by default uses this separator in the query strings it builds. This results in HTTP requests like GET /index.php?arg=pie&oh=no.

Most HTTP servers don't understand that and bugger out.

As a workaround, I temporarily set arg_separator.output to & for the duration of Zend\Http\Client->send().

@demonkoryu demonkoryu referenced this issue from a commit in demonkoryu/zf2
@demonkoryu demonkoryu Fixes #2745 caf3749
@demonkoryu demonkoryu referenced this issue from a commit
Commit has since been removed from the repository and is no longer available.
@ralphschindler
Collaborator

Why do you set arg_separator.output to & in the first place?

@demonkoryu

For generating valid HTML when using transparent session IDs.

I've also might have set arg_separator.output to ;, but there's the same problem: Some web APIs don't understand that because they use the semicolon as pseudo array delimiters in their argument values.

@weierophinney weierophinney closed this issue from a commit
@demonkoryu demonkoryu Fixes #2745. 5821567
@ghost Unknown referenced this issue from a commit
@demonkoryu demonkoryu Fixes #2745. e027038
@ghost Unknown referenced this issue from a commit
@weierophinney weierophinney Merge branch 'feature/2774' into develop
Close #2774
Close #2745
8387c06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.