Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

Now i have create a web request and getting response from that request. My response type is html. But in this html double quotes are missed in attributes. For example
 <form method = POST name=xxxxx> <Body>
    <table width=600 align=middle>
                <tr><td align=middle>Your Test below.</td></tr>
                <tr> 
</table>


We are using response content type is text/html

Al replies are welcome.

Regards,
DK

What I have tried:

I have tried force to use content type = "text/html"
Posted
Updated 1-Sep-17 4:37am
Comments
Afzaal Ahmad Zeeshan 1-Sep-17 8:12am    
What is the code on serverside?
Thomas Nielsen - getCore 1-Sep-17 10:55am    
The response comes from somewhere, is that somewhere you can control?
If not you'll have to do what you can with what you get.. totally doable though ;)

1 solution

If the server is not your own server: nothing to do about it. But realize that attribute quotes are optional in HTML5 so this is valid HTML, and a decent HTML5 parser should not have any problem with this.

If the server is yours: you don't specify what server or what server-side language so I can't give specific advice, but the answer here is to tweak the code or settins of your server. A search engine can probably help you with this already.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900