0

Hello all,

I'm having some problems, see I'm making an API in php to my web app comunicate to a desktop app.

Anyways, when I try to post some data to the site I need a url to go in that data, example:

name=product&description=something&site=mysite.com?name=a&desc=b

this is how the post is done via C#, now the parameter "site" will be splited in two parts and I dont need that! I know for php sounds very logic, but is there a way to parse this url?

or any alternatives?

Thanks for sharing your expertise.

2
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by ﻼim
0

dont worry, I solved the problem with str_replace()

that was just an example url, what I wanted to point is that when you post urls php will split them in two parts, so you need to replace before posting and after posting.

0

dont worry, I solved the problem with str_replace()

that was just an example url, what I wanted to point is that when you post urls php will split them in two parts, so you need to replace before posting and after posting.

good for you. Ϋ

don't forget to mark this thread as solved.
thanks. :icon_wink:

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.