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.

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.

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:

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.